Bug 895274 part.36 Rename NS_MOUSEENTER to eMouseEnter r=smaug

This commit is contained in:
Masayuki Nakano 2015-08-29 08:58:33 +09:00
parent e41398ce2f
commit af5b384d9a
4 changed files with 7 additions and 7 deletions

View File

@ -271,7 +271,7 @@ EVENT(mousedown,
EventNameType_All,
eMouseEventClass)
EVENT(mouseenter,
NS_MOUSEENTER,
eMouseEnter,
EventNameType_All,
eMouseEventClass)
EVENT(mouseleave,

View File

@ -3742,7 +3742,7 @@ EventStateManager::DispatchMouseOrPointerEvent(WidgetMouseEvent* aMouseEvent,
// of a mouse cursor must not be dispatched (for example: mouseover, mouseout).
if (sIsPointerLocked &&
(aMessage == NS_MOUSELEAVE ||
aMessage == NS_MOUSEENTER ||
aMessage == eMouseEnter ||
aMessage == eMouseOver ||
aMessage == eMouseOut)) {
mCurrentTargetContent = nullptr;
@ -3853,7 +3853,7 @@ public:
~EnterLeaveDispatcher()
{
if (mEventMessage == NS_MOUSEENTER ||
if (mEventMessage == eMouseEnter ||
mEventMessage == NS_POINTER_ENTER) {
for (int32_t i = mTargets.Count() - 1; i >= 0; --i) {
mESM->DispatchMouseOrPointerEvent(mMouseEvent, mEventMessage,
@ -3991,7 +3991,7 @@ EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent,
Maybe<EnterLeaveDispatcher> enterDispatcher;
if (dispatch) {
enterDispatcher.emplace(this, aContent, lastOverElement, aMouseEvent,
isPointer ? NS_POINTER_ENTER : NS_MOUSEENTER);
isPointer ? NS_POINTER_ENTER : eMouseEnter);
}
NotifyMouseOut(aMouseEvent, aContent);

View File

@ -58,7 +58,7 @@ NS_EVENT_MESSAGE(eMouseActivate, eMouseEventFirst + 30)
NS_EVENT_MESSAGE(eMouseOver, eMouseEventFirst + 31)
NS_EVENT_MESSAGE(eMouseOut, eMouseEventFirst + 32)
NS_EVENT_MESSAGE(eMouseHitTest, eMouseEventFirst + 33)
NS_EVENT_MESSAGE(NS_MOUSEENTER, eMouseEventFirst + 34)
NS_EVENT_MESSAGE(eMouseEnter, eMouseEventFirst + 34)
NS_EVENT_MESSAGE(NS_MOUSELEAVE, eMouseEventFirst + 35)
NS_EVENT_MESSAGE(NS_MOUSE_MOZLONGTAP, eMouseEventFirst + 36)

View File

@ -204,7 +204,7 @@ protected:
, clickCount(0)
{
switch (aMessage) {
case NS_MOUSEENTER:
case eMouseEnter:
case NS_MOUSELEAVE:
mFlags.mBubbles = false;
mFlags.mCancelable = false;
@ -224,7 +224,7 @@ public:
reason(aReason), context(aContext), exit(eChild), clickCount(0)
{
switch (aMessage) {
case NS_MOUSEENTER:
case eMouseEnter:
case NS_MOUSELEAVE:
mFlags.mBubbles = false;
mFlags.mCancelable = false;