Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 deltaY(0.0f), | 78 deltaY(0.0f), |
| 79 wheelTicksX(0.0f), | 79 wheelTicksX(0.0f), |
| 80 wheelTicksY(0.0f), | 80 wheelTicksY(0.0f), |
| 81 accelerationRatioX(1.0f), | 81 accelerationRatioX(1.0f), |
| 82 accelerationRatioY(1.0f), | 82 accelerationRatioY(1.0f), |
| 83 resendingPluginId(-1), | 83 resendingPluginId(-1), |
| 84 phase(PhaseNone), | 84 phase(PhaseNone), |
| 85 momentumPhase(PhaseNone), | 85 momentumPhase(PhaseNone), |
| 86 railsMode(RailsModeFree), | 86 railsMode(RailsModeFree), |
| 87 dispatchType(Blocking) {} | 87 dispatchType(Blocking) {} |
| 88 | |
| 89 #if INSIDE_BLINK | |
| 90 BLINK_PLATFORM_EXPORT float deltaXInRootFrame() const; | |
| 91 BLINK_PLATFORM_EXPORT float deltaYInRootFrame() const; | |
| 92 | |
| 93 // Sets any scaled values to be their computed values and sets |frameScale| | |
| 94 // back to 1 and |translateX|, |translateY| back to 0. | |
| 95 BLINK_PLATFORM_EXPORT WebMouseWheelEvent flattenTransform() const; | |
| 96 | |
| 97 bool cancelable() const { return dispatchType == Blocking; } | |
|
esprehn
2017/01/04 22:00:53
isCancelable() ?
dtapuska
2017/01/05 14:16:18
Done.
| |
| 98 #endif | |
| 88 }; | 99 }; |
| 89 #pragma pack(pop) | 100 #pragma pack(pop) |
| 90 | 101 |
| 91 } // namespace blink | 102 } // namespace blink |
| 92 | 103 |
| 93 #endif // WebMouseWheelEvent_h | 104 #endif // WebMouseWheelEvent_h |
| OLD | NEW |