OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebGestureEvent_h | 5 #ifndef WebGestureEvent_h |
6 #define WebGestureEvent_h | 6 #define WebGestureEvent_h |
7 | 7 |
8 #include "WebFloatSize.h" | 8 #include "WebFloatSize.h" |
9 #include "WebGestureDevice.h" | 9 #include "WebGestureDevice.h" |
10 #include "WebInputEvent.h" | 10 #include "WebInputEvent.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 Pixels, // large pixel jump duration; should animate to delta. | 23 Pixels, // large pixel jump duration; should animate to delta. |
24 Page // page (visible viewport) based scrolling. | 24 Page // page (visible viewport) based scrolling. |
25 }; | 25 }; |
26 | 26 |
27 enum InertialPhaseState { | 27 enum InertialPhaseState { |
28 UnknownMomentumPhase = 0, // No phase information. | 28 UnknownMomentumPhase = 0, // No phase information. |
29 NonMomentumPhase, // Regular scrolling phase. | 29 NonMomentumPhase, // Regular scrolling phase. |
30 MomentumPhase, // Momentum phase. | 30 MomentumPhase, // Momentum phase. |
31 }; | 31 }; |
32 | 32 |
| 33 // TODO(mustaq): Make these coordinates private & fractional, as in |
| 34 // WebMouseEvent.h . |
33 int x; | 35 int x; |
34 int y; | 36 int y; |
35 int globalX; | 37 int globalX; |
36 int globalY; | 38 int globalY; |
37 WebGestureDevice sourceDevice; | 39 WebGestureDevice sourceDevice; |
38 | 40 |
39 // If the WebGestureEvent has sourceDevice=WebGestureDeviceTouchscreen, this | 41 // If the WebGestureEvent has sourceDevice=WebGestureDeviceTouchscreen, this |
40 // field contains the unique identifier for the touch event that released | 42 // field contains the unique identifier for the touch event that released |
41 // this event at TouchDispositionGestureFilter. If the WebGestureEvents was | 43 // this event at TouchDispositionGestureFilter. If the WebGestureEvents was |
42 // not released through a touch event (e.g. timer-released gesture events or | 44 // not released through a touch event (e.g. timer-released gesture events or |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 227 } |
226 | 228 |
227 #endif | 229 #endif |
228 }; | 230 }; |
229 | 231 |
230 #pragma pack(pop) | 232 #pragma pack(pop) |
231 | 233 |
232 } // namespace blink | 234 } // namespace blink |
233 | 235 |
234 #endif // WebGestureEvent_h | 236 #endif // WebGestureEvent_h |
OLD | NEW |