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