Bug 895274 part.268 Rename NS_SIMPLE_GESTURE_SWIPE_MAY_START to eSwipeGestureMayStart r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-15 00:14:38 +09:00
parent 01d0c1e4f6
commit a32fa2bbf6
4 changed files with 7 additions and 6 deletions

View File

@ -1296,9 +1296,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
return NS_ERROR_FAILURE;
EventMessage msg;
if (aType.EqualsLiteral("MozSwipeGestureMayStart"))
msg = NS_SIMPLE_GESTURE_SWIPE_MAY_START;
else if (aType.EqualsLiteral("MozSwipeGestureStart")) {
if (aType.EqualsLiteral("MozSwipeGestureMayStart")) {
msg = eSwipeGestureMayStart;
} else if (aType.EqualsLiteral("MozSwipeGestureStart")) {
msg = eSwipeGestureStart;
} else if (aType.EqualsLiteral("MozSwipeGestureUpdate")) {
msg = eSwipeGestureUpdate;

View File

@ -848,7 +848,7 @@ NON_IDL_EVENT(gamepaddisconnected,
// Simple gesture events
NON_IDL_EVENT(MozSwipeGestureMayStart,
NS_SIMPLE_GESTURE_SWIPE_MAY_START,
eSwipeGestureMayStart,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozSwipeGestureStart,

View File

@ -272,7 +272,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(eSwipeGestureMayStart, NS_SIMPLE_GESTURE_EVENT_START)
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)

View File

@ -2599,7 +2599,8 @@ nsChildView::SendMayStartSwipe(const mozilla::PanGestureInput& aSwipeStartEvent)
LayoutDeviceIntPoint position =
RoundedToInt(aSwipeStartEvent.mPanStartPoint * ScreenToLayoutDeviceScale(1));
WidgetSimpleGestureEvent geckoEvent =
SwipeTracker::CreateSwipeGestureEvent(NS_SIMPLE_GESTURE_SWIPE_MAY_START, this, position);
SwipeTracker::CreateSwipeGestureEvent(eSwipeGestureMayStart, this,
position);
geckoEvent.direction = direction;
geckoEvent.delta = 0.0;
geckoEvent.allowedDirections = 0;