зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.260 Rename NS_SIMPLE_GESTURE_ROTATE_START to eRotateGestureStart r=smaug
This commit is contained in:
Родитель
d80c30a345
Коммит
7336c96a8a
|
@ -1312,9 +1312,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
|
|||
msg = NS_SIMPLE_GESTURE_MAGNIFY_UPDATE;
|
||||
else if (aType.EqualsLiteral("MozMagnifyGesture"))
|
||||
msg = NS_SIMPLE_GESTURE_MAGNIFY;
|
||||
else if (aType.EqualsLiteral("MozRotateGestureStart"))
|
||||
msg = NS_SIMPLE_GESTURE_ROTATE_START;
|
||||
else if (aType.EqualsLiteral("MozRotateGestureUpdate")) {
|
||||
else if (aType.EqualsLiteral("MozRotateGestureStart")) {
|
||||
msg = eRotateGestureStart;
|
||||
} else if (aType.EqualsLiteral("MozRotateGestureUpdate")) {
|
||||
msg = eRotateGestureUpdate;
|
||||
} else if (aType.EqualsLiteral("MozRotateGesture")) {
|
||||
msg = eRotateGesture;
|
||||
|
|
|
@ -880,7 +880,7 @@ NON_IDL_EVENT(MozMagnifyGesture,
|
|||
EventNameType_None,
|
||||
eSimpleGestureEventClass)
|
||||
NON_IDL_EVENT(MozRotateGestureStart,
|
||||
NS_SIMPLE_GESTURE_ROTATE_START,
|
||||
eRotateGestureStart,
|
||||
EventNameType_None,
|
||||
eSimpleGestureEventClass)
|
||||
NON_IDL_EVENT(MozRotateGestureUpdate,
|
||||
|
|
|
@ -280,7 +280,7 @@ NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_SWIPE, NS_SIMPLE_GESTURE_EVENT_START
|
|||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_MAGNIFY_START, NS_SIMPLE_GESTURE_EVENT_START + 5)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_MAGNIFY_UPDATE, NS_SIMPLE_GESTURE_EVENT_START + 6)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_MAGNIFY, NS_SIMPLE_GESTURE_EVENT_START + 7)
|
||||
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_ROTATE_START, NS_SIMPLE_GESTURE_EVENT_START + 8)
|
||||
NS_EVENT_MESSAGE(eRotateGestureStart, NS_SIMPLE_GESTURE_EVENT_START + 8)
|
||||
NS_EVENT_MESSAGE(eRotateGestureUpdate, NS_SIMPLE_GESTURE_EVENT_START + 9)
|
||||
NS_EVENT_MESSAGE(eRotateGesture, NS_SIMPLE_GESTURE_EVENT_START + 10)
|
||||
NS_EVENT_MESSAGE(eTapGesture, NS_SIMPLE_GESTURE_EVENT_START + 11)
|
||||
|
|
|
@ -4288,7 +4288,7 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
|||
EventMessage msg;
|
||||
switch (mGestureState) {
|
||||
case eGestureState_StartGesture:
|
||||
msg = NS_SIMPLE_GESTURE_ROTATE_START;
|
||||
msg = eRotateGestureStart;
|
||||
mGestureState = eGestureState_RotateGesture;
|
||||
break;
|
||||
|
||||
|
|
|
@ -384,9 +384,9 @@ nsWinGesture::ProcessGestureMessage(HWND hWnd, WPARAM wParam, LPARAM lParam,
|
|||
else if (evt.delta < 0)
|
||||
evt.direction = nsIDOMSimpleGestureEvent::ROTATION_CLOCKWISE;
|
||||
|
||||
if (gi.dwFlags & GF_BEGIN)
|
||||
evt.mMessage = NS_SIMPLE_GESTURE_ROTATE_START;
|
||||
else if (gi.dwFlags & GF_END) {
|
||||
if (gi.dwFlags & GF_BEGIN) {
|
||||
evt.mMessage = eRotateGestureStart;
|
||||
} else if (gi.dwFlags & GF_END) {
|
||||
evt.mMessage = eRotateGesture;
|
||||
} else {
|
||||
evt.mMessage = eRotateGestureUpdate;
|
||||
|
|
Загрузка…
Ссылка в новой задаче