Bug 895274 part.257 Rename NS_SIMPLE_GESTURE_TAP to eTapGesture r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-15 00:14:36 +09:00
parent 7c749f1014
commit 618e324af6
5 changed files with 10 additions and 13 deletions

View File

@ -1318,9 +1318,9 @@ nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString& aType,
msg = NS_SIMPLE_GESTURE_ROTATE_UPDATE;
else if (aType.EqualsLiteral("MozRotateGesture"))
msg = NS_SIMPLE_GESTURE_ROTATE;
else if (aType.EqualsLiteral("MozTapGesture"))
msg = NS_SIMPLE_GESTURE_TAP;
else if (aType.EqualsLiteral("MozPressTapGesture")) {
else if (aType.EqualsLiteral("MozTapGesture")) {
msg = eTapGesture;
} else if (aType.EqualsLiteral("MozPressTapGesture")) {
msg = ePressTapGesture;
} else if (aType.EqualsLiteral("MozEdgeUIStarted")) {
msg = eEdgeUIStarted;

View File

@ -892,7 +892,7 @@ NON_IDL_EVENT(MozRotateGesture,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozTapGesture,
NS_SIMPLE_GESTURE_TAP,
eTapGesture,
EventNameType_None,
eSimpleGestureEventClass)
NON_IDL_EVENT(MozPressTapGesture,

View File

@ -283,7 +283,7 @@ NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_MAGNIFY, NS_SIMPLE_GESTURE_EVENT_START
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_ROTATE_START, NS_SIMPLE_GESTURE_EVENT_START + 8)
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_ROTATE_UPDATE, NS_SIMPLE_GESTURE_EVENT_START + 9)
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_ROTATE, NS_SIMPLE_GESTURE_EVENT_START + 10)
NS_EVENT_MESSAGE(NS_SIMPLE_GESTURE_TAP, NS_SIMPLE_GESTURE_EVENT_START + 11)
NS_EVENT_MESSAGE(eTapGesture, NS_SIMPLE_GESTURE_EVENT_START + 11)
NS_EVENT_MESSAGE(ePressTapGesture, NS_SIMPLE_GESTURE_EVENT_START + 12)
NS_EVENT_MESSAGE(eEdgeUIStarted, NS_SIMPLE_GESTURE_EVENT_START + 13)
NS_EVENT_MESSAGE(eEdgeUICanceled, NS_SIMPLE_GESTURE_EVENT_START + 14)

View File

@ -4261,8 +4261,7 @@ NSEvent* gLastDragMouseDownEvent = nil;
nsAutoRetainCocoaObject kungFuDeathGrip(self);
// Setup the "double tap" event.
WidgetSimpleGestureEvent geckoEvent(true, NS_SIMPLE_GESTURE_TAP,
mGeckoChild);
WidgetSimpleGestureEvent geckoEvent(true, eTapGesture, mGeckoChild);
[self convertCocoaMouseEvent:anEvent toGeckoEvent:&geckoEvent];
geckoEvent.clickCount = 1;

View File

@ -394,13 +394,11 @@ nsWinGesture::ProcessGestureMessage(HWND hWnd, WPARAM wParam, LPARAM lParam,
break;
case GID_TWOFINGERTAP:
{
// Normally maps to "restore" from whatever you may have recently changed. A simple
// double click.
evt.mMessage = NS_SIMPLE_GESTURE_TAP;
// Normally maps to "restore" from whatever you may have recently changed.
// A simple double click.
evt.mMessage = eTapGesture;
evt.clickCount = 1;
}
break;
break;
case GID_PRESSANDTAP:
// Two finger right click. Defaults to right click if it falls through.