Bug 895274 part.44 Rename NS_POINTER_ENTER to ePointerEnter r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-01 00:20:05 +09:00
parent 8573b1888d
commit d9f9d54b87
4 changed files with 5 additions and 6 deletions

View File

@ -335,7 +335,7 @@ EVENT(pointerout,
EventNameType_All,
ePointerEventClass)
EVENT(pointerenter,
NS_POINTER_ENTER,
ePointerEnter,
EventNameType_All,
ePointerEventClass)
EVENT(pointerleave,

View File

@ -3872,8 +3872,7 @@ public:
~EnterLeaveDispatcher()
{
if (mEventMessage == eMouseEnter ||
mEventMessage == NS_POINTER_ENTER) {
if (mEventMessage == eMouseEnter || mEventMessage == ePointerEnter) {
for (int32_t i = mTargets.Count() - 1; i >= 0; --i) {
mESM->DispatchMouseOrPointerEvent(mMouseEvent, mEventMessage,
mTargets[i], mRelatedTarget);
@ -4010,7 +4009,7 @@ EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent,
Maybe<EnterLeaveDispatcher> enterDispatcher;
if (dispatch) {
enterDispatcher.emplace(this, aContent, lastOverElement, aMouseEvent,
isPointer ? NS_POINTER_ENTER : eMouseEnter);
isPointer ? ePointerEnter : eMouseEnter);
}
NotifyMouseOut(aMouseEvent, aContent);

View File

@ -69,7 +69,7 @@ NS_EVENT_MESSAGE(NS_POINTER_UP, ePointerEventFirst + 1)
NS_EVENT_MESSAGE(NS_POINTER_DOWN, ePointerEventFirst + 2)
NS_EVENT_MESSAGE(NS_POINTER_OVER, ePointerEventFirst + 22)
NS_EVENT_MESSAGE(NS_POINTER_OUT, ePointerEventFirst + 23)
NS_EVENT_MESSAGE(NS_POINTER_ENTER, ePointerEventFirst + 24)
NS_EVENT_MESSAGE(ePointerEnter, ePointerEventFirst + 24)
NS_EVENT_MESSAGE(ePointerLeave, ePointerEventFirst + 25)
NS_EVENT_MESSAGE(ePointerCancel, ePointerEventFirst + 26)
NS_EVENT_MESSAGE(ePointerGotCapture, ePointerEventFirst + 27)

View File

@ -625,7 +625,7 @@ public:
void UpdateFlags()
{
switch (mMessage) {
case NS_POINTER_ENTER:
case ePointerEnter:
case ePointerLeave:
mFlags.mBubbles = false;
mFlags.mCancelable = false;