Bug 895274 part.267 Rename NS_SIMPLE_GESTURE_SWIPE_START to eSwipeGestureStart r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-15 00:14:37 +09:00
parent fcbb201e80
commit 61ff225c56
4 changed files with 6 additions and 6 deletions

View File

@ -1298,9 +1298,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
EventMessage msg;
if (aType.EqualsLiteral("MozSwipeGestureMayStart"))
msg = NS_SIMPLE_GESTURE_SWIPE_MAY_START;
else if (aType.EqualsLiteral("MozSwipeGestureStart"))
msg = NS_SIMPLE_GESTURE_SWIPE_START;
else if (aType.EqualsLiteral("MozSwipeGestureUpdate")) {
else if (aType.EqualsLiteral("MozSwipeGestureStart")) {
msg = eSwipeGestureStart;
} else if (aType.EqualsLiteral("MozSwipeGestureUpdate")) {
msg = eSwipeGestureUpdate;
} else if (aType.EqualsLiteral("MozSwipeGestureEnd")) {
msg = eSwipeGestureEnd;

View File

@ -852,7 +852,7 @@ NON_IDL_EVENT(MozSwipeGestureMayStart,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozSwipeGestureStart,
NS_SIMPLE_GESTURE_SWIPE_START,
eSwipeGestureStart,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozSwipeGestureUpdate,

View File

@ -273,7 +273,7 @@ NS_EVENT_MESSAGE(eAfterPaint, ePaintEventFirst)
// Simple gesture events
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(eSwipeGestureStart, NS_SIMPLE_GESTURE_EVENT_START + 1)
NS_EVENT_MESSAGE(eSwipeGestureUpdate, NS_SIMPLE_GESTURE_EVENT_START + 2)
NS_EVENT_MESSAGE(eSwipeGestureEnd, NS_SIMPLE_GESTURE_EVENT_START + 3)
NS_EVENT_MESSAGE(eSwipeGesture, NS_SIMPLE_GESTURE_EVENT_START + 4)

View File

@ -51,7 +51,7 @@ SwipeTracker::SwipeTracker(nsChildView& aWidget,
, mEventsHaveStartedNewGesture(false)
, mRegisteredWithRefreshDriver(false)
{
SendSwipeEvent(NS_SIMPLE_GESTURE_SWIPE_START, 0, 0.0);
SendSwipeEvent(eSwipeGestureStart, 0, 0.0);
ProcessEvent(aSwipeStartEvent);
}