Index: third_party/WebKit/public/platform/WebInputEvent.h |
diff --git a/third_party/WebKit/public/platform/WebInputEvent.h b/third_party/WebKit/public/platform/WebInputEvent.h |
index 21d9a47c5c020524a33b2fcae3a18f5ae8c2fbcc..07a1d41a4b5cf737fb910d9316996b95bf7b9dc9 100644 |
--- a/third_party/WebKit/public/platform/WebInputEvent.h |
+++ b/third_party/WebKit/public/platform/WebInputEvent.h |
@@ -106,33 +106,64 @@ class WebInputEvent { |
// WebKeyboardEvent |
RawKeyDown, |
KeyboardTypeFirst = RawKeyDown, |
+ // KeyDown is a single event combining RawKeyDown and Char. If KeyDown is |
dtapuska
2017/03/29 13:01:55
Probably adding a piece of text here like assuming
aelias_OOO_until_Jul13
2017/03/29 19:07:53
Done.
|
+ // sent, those two other events will not be sent. |
KeyDown, |
KeyUp, |
Char, |
KeyboardTypeLast = Char, |
- // WebGestureEvent |
+ // WebGestureEvent - touch pointers already interpreted semi-sematically. |
tdresser
2017/03/29 12:26:48
sematically -> semantically?
It's a bit tricky, b
aelias_OOO_until_Jul13
2017/03/29 19:07:55
Done.
|
GestureScrollBegin, |
GestureTypeFirst = GestureScrollBegin, |
GestureScrollEnd, |
GestureScrollUpdate, |
+ // Fling is a high-velocity and quickly released finger movement. |
+ // FlingStart is sent once and kicks off a scroll animation. |
GestureFlingStart, |
GestureFlingCancel, |
+ // Pinch is two fingers moving closer or farther apart. |
+ GesturePinchBegin, |
+ GesturePinchEnd, |
+ GesturePinchUpdate, |
+ |
+ // The following types are variations and subevents of single-taps. |
+ // |
+ // Sent the moment the user's finger hits the screen. |
+ GestureTapDown, |
+ // Sent a short interval later, after it seems the finger is staying in |
+ // place. It's used to activate the link highlight ("show the press"). |
GestureShowPress, |
+ // Sent on finger lift, if the gesture didn't turn into a scroll. This is |
+ // the "main" event which maps to a synthetic mouse click event. |
tdresser
2017/03/29 12:26:48
On long tap, we don't send a tap event, do we?
aelias_OOO_until_Jul13
2017/03/29 19:07:54
Switched to "for a simple, static, quick finger ta
|
GestureTap, |
- GestureTapUnconfirmed, |
- GestureTapDown, |
+ // Sent when a GestureTapDown didn't turn into a GestureTap (likely it |
+ // turned into a scroll instead). |
GestureTapCancel, |
- GestureDoubleTap, |
- GestureTwoFingerTap, |
+ // Sent as soon as the long-press timeout fires, while the finger is still |
+ // down. |
GestureLongPress, |
+ // Sent when the finger is lifted following a GestureLongPress. |
GestureLongTap, |
- GesturePinchBegin, |
- GesturePinchEnd, |
- GesturePinchUpdate, |
- GestureTypeLast = GesturePinchUpdate, |
+ // Sent on finger lift when two fingers tapped at the same time without |
+ // moving. |
+ GestureTwoFingerTap, |
+ // A rare event sent in place of GestureTap on desktop pages viewed on an |
+ // Android phone. This tap could not yet be resolved into a GestureTap |
+ // because it may still turn into a GestureDoubleTap. |
+ GestureTapUnconfirmed, |
mustaq
2017/03/29 18:27:28
Am I right to recall that CrOS also fires GestureT
aelias_OOO_until_Jul13
2017/03/29 19:07:53
No, I had grepped this and only place that sets it
aelias_OOO_until_Jul13
2017/03/29 19:10:55
And in general, there's no appetite at all for shi
tdresser
2017/03/29 19:45:55
+1
|
+ |
+ // Double-tap is two single-taps spread apart in time, like a double-click. |
+ // This event is only sent on desktop pages viewed on an Android phone, and |
+ // is always preceded by GestureTapUnconfirmed. It's an instruction to |
+ // Blink to perform a PageScaleAnimation zoom onto the double-tapped |
+ // content. (It's treated differently from GestureTap with tapCount=2, |
+ // which can also happen.) |
+ GestureDoubleTap, |
+ |
+ GestureTypeLast = GestureDoubleTap, |
- // WebTouchEvent |
+ // WebTouchEvent - raw touch pointers not yet classified into gestures. |
TouchStart, |
TouchTypeFirst = TouchStart, |
TouchMove, |