mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.265 Rename NS_SIMPLE_GESTURE_SWIPE_END to eSwipeGestureEnd r=smaug
This commit is contained in:
parent
d25389b0ae
commit
cc9cb7c235
@ -1302,9 +1302,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
|
||||
msg = NS_SIMPLE_GESTURE_SWIPE_START;
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureUpdate"))
|
||||
msg = NS_SIMPLE_GESTURE_SWIPE_UPDATE;
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureEnd"))
|
||||
msg = NS_SIMPLE_GESTURE_SWIPE_END;
|
||||
else if (aType.EqualsLiteral("MozSwipeGesture")) {
|
||||
else if (aType.EqualsLiteral("MozSwipeGestureEnd")) {
|
||||
msg = eSwipeGestureEnd;
|
||||
} else if (aType.EqualsLiteral("MozSwipeGesture")) {
|
||||
msg = eSwipeGesture;
|
||||
} else if (aType.EqualsLiteral("MozMagnifyGestureStart")) {
|
||||
msg = eMagnifyGestureStart;
|
||||
|
@ -860,7 +860,7 @@ NON_IDL_EVENT(MozSwipeGestureUpdate,
|
||||
EventNameType_None,
|
||||
eSimpleGestureEventClass)
|
||||
NON_IDL_EVENT(MozSwipeGestureEnd,
|
||||
NS_SIMPLE_GESTURE_SWIPE_END,
|
||||
eSwipeGestureEnd,
|
||||
EventNameType_None,
|
||||
eSimpleGestureEventClass)
|
||||
NON_IDL_EVENT(MozSwipeGesture,
|
||||
|
@ -275,7 +275,7 @@ NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_EVENT_START, 3500)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_MAY_START,NS_SIMPLE_GESTURE_EVENT_START)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_START, NS_SIMPLE_GESTURE_EVENT_START + 1)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_UPDATE, NS_SIMPLE_GESTURE_EVENT_START + 2)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE_END, NS_SIMPLE_GESTURE_EVENT_START + 3)
|
||||
NS_EVENT_MESSAGE(eSwipeGestureEnd, NS_SIMPLE_GESTURE_EVENT_START + 3)
|
||||
NS_EVENT_MESSAGE(eSwipeGesture, NS_SIMPLE_GESTURE_EVENT_START + 4)
|
||||
NS_EVENT_MESSAGE(eMagnifyGestureStart, NS_SIMPLE_GESTURE_EVENT_START + 5)
|
||||
NS_EVENT_MESSAGE(eMagnifyGestureUpdate, NS_SIMPLE_GESTURE_EVENT_START + 6)
|
||||
|
@ -175,12 +175,12 @@ SwipeTracker::WillRefresh(mozilla::TimeStamp aTime)
|
||||
void
|
||||
SwipeTracker::CancelSwipe()
|
||||
{
|
||||
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_END, 0, 0.0);
|
||||
SendSwipeEvent(eSwipeGestureEnd, 0, 0.0);
|
||||
}
|
||||
|
||||
void SwipeTracker::SwipeFinished()
|
||||
{
|
||||
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_END, 0, 0.0);
|
||||
SendSwipeEvent(eSwipeGestureEnd, 0, 0.0);
|
||||
mWidget.SwipeFinished();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user