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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 float height; | 77 float height; |
78 } long_press; | 78 } long_press; |
79 | 79 |
80 struct { | 80 struct { |
81 float first_finger_width; | 81 float first_finger_width; |
82 float first_finger_height; | 82 float first_finger_height; |
83 } two_finger_tap; | 83 } two_finger_tap; |
84 | 84 |
85 struct { | 85 struct { |
86 // Initial motion that triggered the scroll. | 86 // Initial motion that triggered the scroll. |
87 // May be redundant with deltaX/deltaY in the first scrollUpdate. | |
88 float delta_x_hint; | 87 float delta_x_hint; |
89 float delta_y_hint; | 88 float delta_y_hint; |
| 89 bool ignore_delta_hints; |
90 // Default initialized to ScrollUnits::PrecisePixels. | 90 // Default initialized to ScrollUnits::PrecisePixels. |
91 ScrollUnits delta_hint_units; | 91 ScrollUnits delta_hint_units; |
92 // If true, this event will skip hit testing to find a scroll | 92 // If true, this event will skip hit testing to find a scroll |
93 // target and instead just scroll the viewport. | 93 // target and instead just scroll the viewport. |
94 bool target_viewport; | 94 bool target_viewport; |
95 // The state of inertial phase scrolling. OSX has unique phases for normal | 95 // The state of inertial phase scrolling. OSX has unique phases for normal |
96 // and momentum scroll events. Should always be UnknownMomentumPhase for | 96 // and momentum scroll events. Should always be UnknownMomentumPhase for |
97 // touch based input as it generates GestureFlingStart instead. | 97 // touch based input as it generates GestureFlingStart instead. |
98 InertialPhaseState inertial_phase; | 98 InertialPhaseState inertial_phase; |
99 // True if this event was synthesized in order to force a hit test; | 99 // True if this event was synthesized in order to force a hit test; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 return false; | 240 return false; |
241 } | 241 } |
242 } | 242 } |
243 }; | 243 }; |
244 | 244 |
245 #pragma pack(pop) | 245 #pragma pack(pop) |
246 | 246 |
247 } // namespace blink | 247 } // namespace blink |
248 | 248 |
249 #endif // WebGestureEvent_h | 249 #endif // WebGestureEvent_h |
OLD | NEW |