mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 895274 part.49 Rename NS_POINTER_MOVE to ePointerMove r=smaug
This commit is contained in:
parent
517f9e1565
commit
efc8ec6803
@ -706,7 +706,7 @@ nsDOMWindowUtils::SendPointerEventCommon(const nsAString& aType,
|
||||
} else if (aType.EqualsLiteral("pointerup")) {
|
||||
msg = ePointerUp;
|
||||
} else if (aType.EqualsLiteral("pointermove")) {
|
||||
msg = NS_POINTER_MOVE;
|
||||
msg = ePointerMove;
|
||||
} else if (aType.EqualsLiteral("pointerover")) {
|
||||
msg = ePointerOver;
|
||||
} else if (aType.EqualsLiteral("pointerout")) {
|
||||
|
@ -315,7 +315,7 @@ EVENT(pointerdown,
|
||||
EventNameType_All,
|
||||
ePointerEventClass)
|
||||
EVENT(pointermove,
|
||||
NS_POINTER_MOVE,
|
||||
ePointerMove,
|
||||
EventNameType_All,
|
||||
ePointerEventClass)
|
||||
EVENT(pointerup,
|
||||
|
@ -631,7 +631,7 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
||||
}
|
||||
case eMouseMove:
|
||||
case ePointerDown:
|
||||
case NS_POINTER_MOVE: {
|
||||
case ePointerMove: {
|
||||
// on the Mac, GenerateDragGesture() may not return until the drag
|
||||
// has completed and so |aTargetFrame| may have been deleted (moving
|
||||
// a bookmark, for example). If this is the case, however, we know
|
||||
@ -4148,7 +4148,7 @@ EventStateManager::GenerateMouseEnterExit(WidgetMouseEvent* aMouseEvent)
|
||||
sLastRefPoint = aMouseEvent->refPoint;
|
||||
|
||||
}
|
||||
case NS_POINTER_MOVE:
|
||||
case ePointerMove:
|
||||
case ePointerDown:
|
||||
{
|
||||
// Get the target content target (mousemove target == mouseover target)
|
||||
|
@ -6672,7 +6672,7 @@ DispatchPointerFromMouseOrTouch(PresShell* aShell,
|
||||
if (mouseEvent->buttons == 0) {
|
||||
button = -1;
|
||||
}
|
||||
pointerMessage = NS_POINTER_MOVE;
|
||||
pointerMessage = ePointerMove;
|
||||
break;
|
||||
case eMouseUp:
|
||||
pointerMessage = ePointerUp;
|
||||
@ -6698,7 +6698,7 @@ DispatchPointerFromMouseOrTouch(PresShell* aShell,
|
||||
// copy the event
|
||||
switch (touchEvent->mMessage) {
|
||||
case NS_TOUCH_MOVE:
|
||||
pointerMessage = NS_POINTER_MOVE;
|
||||
pointerMessage = ePointerMove;
|
||||
break;
|
||||
case NS_TOUCH_END:
|
||||
pointerMessage = ePointerUp;
|
||||
|
@ -64,7 +64,7 @@ NS_EVENT_MESSAGE(eMouseLongTap, eMouseEventFirst + 36)
|
||||
|
||||
// Pointer spec events
|
||||
NS_EVENT_MESSAGE(ePointerEventFirst, 4400)
|
||||
NS_EVENT_MESSAGE(NS_POINTER_MOVE, ePointerEventFirst)
|
||||
NS_EVENT_MESSAGE(ePointerMove, ePointerEventFirst)
|
||||
NS_EVENT_MESSAGE(ePointerUp, ePointerEventFirst + 1)
|
||||
NS_EVENT_MESSAGE(ePointerDown, ePointerEventFirst + 2)
|
||||
NS_EVENT_MESSAGE(ePointerOver, ePointerEventFirst + 22)
|
||||
|
Loading…
Reference in New Issue
Block a user