Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: third_party/WebKit/public/platform/WebMouseWheelEvent.h

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Rebase Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698