Bug 895274 part.265 Rename NS_SIMPLE_GESTURE_SWIPE_END to eSwipeGestureEnd r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-15 00:14:37 +09:00
parent d25389b0ae
commit cc9cb7c235
4 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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)

View File

@ -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();
}