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

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

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Address comments Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/public/platform/WebInputEvent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebInputEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698