Chromium Code Reviews| Index: third_party/WebKit/public/web/WebInputEvent.h |
| diff --git a/third_party/WebKit/public/web/WebInputEvent.h b/third_party/WebKit/public/web/WebInputEvent.h |
| index d2e24f8f1e33fe979d8ea99fdb3fba8873e4faaf..1729db4a2b4aabb80abceac1a96b8f3059018960 100644 |
| --- a/third_party/WebKit/public/web/WebInputEvent.h |
| +++ b/third_party/WebKit/public/web/WebInputEvent.h |
| @@ -189,6 +189,16 @@ public: |
| ScrollLockOn = 1 << 19, |
| }; |
| + enum DispatchType { |
| + Blocking, |
| + NonBlocking, |
|
tdresser
2016/04/18 15:12:03
The difference between NonBlocking and NonBlocking
Rick Byers
2016/04/18 16:57:58
IMHO the important thing is that it's clear that t
dtapuska
2016/04/18 19:19:33
Acknowledged.
dtapuska
2016/04/18 19:19:33
Done.
|
| + // All listeners are passive. |
| + NonBlockingPassive, |
| + // This value represents a state which would have normally blocking |
| + // but was forced to be non-blocking. |
| + NonBlockingForced, |
| + }; |
| + |
| // The rail mode for a wheel event specifies the axis on which scrolling is |
| // expected to stick. If this axis is set to Free, then scrolling is not |
| // stuck to any axis. |
| @@ -602,9 +612,8 @@ public: |
| // List of all touches, regardless of state. |
| WebTouchPoint touches[touchesLengthCap]; |
| - // Whether the event can be canceled (with preventDefault). If true then the browser |
| - // must wait for an ACK for this event. If false then no ACK IPC is expected. |
| - bool cancelable; |
| + // Whether the event is blocking or not. |
|
tdresser
2016/04/18 15:12:03
This comment is a bit terse. Maybe add a bit more
dtapuska
2016/04/18 19:19:33
Done.
|
| + DispatchType dispatchType; |
| // For a single touch, this is true after the touch-point has moved beyond |
| // the platform slop region. For a multitouch, this is true after any |
| @@ -617,7 +626,7 @@ public: |
| WebTouchEvent() |
| : WebInputEvent(sizeof(WebTouchEvent)) |
| , touchesLength(0) |
| - , cancelable(true) |
| + , dispatchType(Blocking) |
| , movedBeyondSlopRegion(false) |
| , uniqueTouchEventId(0) |
| { |