mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 895274 part.268 Rename NS_SIMPLE_GESTURE_SWIPE_MAY_START to eSwipeGestureMayStart r=smaug
This commit is contained in:
parent
01d0c1e4f6
commit
a32fa2bbf6
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user