mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895274 part.257 Rename NS_SIMPLE_GESTURE_TAP to eTapGesture r=smaug
This commit is contained in:
parent
7c749f1014
commit
618e324af6
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user