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 WebMouseWheelEvent_h | 5 #ifndef WebMouseWheelEvent_h |
6 #define WebMouseWheelEvent_h | 6 #define WebMouseWheelEvent_h |
7 | 7 |
8 #include "WebInputEvent.h" | 8 #include "WebInputEvent.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 wheelTicksY(0.0f), | 61 wheelTicksY(0.0f), |
62 accelerationRatioX(1.0f), | 62 accelerationRatioX(1.0f), |
63 accelerationRatioY(1.0f), | 63 accelerationRatioY(1.0f), |
64 resendingPluginId(-1), | 64 resendingPluginId(-1), |
65 phase(PhaseNone), | 65 phase(PhaseNone), |
66 momentumPhase(PhaseNone), | 66 momentumPhase(PhaseNone), |
67 scrollByPage(false), | 67 scrollByPage(false), |
68 hasPreciseScrollingDeltas(false), | 68 hasPreciseScrollingDeltas(false), |
69 railsMode(RailsModeFree), | 69 railsMode(RailsModeFree), |
70 dispatchType(Blocking) {} | 70 dispatchType(Blocking) {} |
| 71 #if INSIDE_BLINK |
| 72 BLINK_PLATFORM_EXPORT float deltaXInRootFrame() const; |
| 73 BLINK_PLATFORM_EXPORT float deltaYInRootFrame() const; |
| 74 |
| 75 // Sets any scaled values to be their computed values and sets |frameScale| |
| 76 // back to 1 and |translateX|, |translateY| back to 0. |
| 77 BLINK_PLATFORM_EXPORT WebMouseWheelEvent flattenTransform() const; |
| 78 |
| 79 bool cancelable() const { return dispatchType == Blocking; } |
| 80 #endif |
71 }; | 81 }; |
72 #pragma pack(pop) | 82 #pragma pack(pop) |
73 | 83 |
74 } // namespace blink | 84 } // namespace blink |
75 | 85 |
76 #endif // WebMouseWheelEvent_h | 86 #endif // WebMouseWheelEvent_h |
OLD | NEW |