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

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

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Rebase 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 bool scrollByPage; 47 bool scrollByPage;
48 bool hasPreciseScrollingDeltas; 48 bool hasPreciseScrollingDeltas;
49 49
50 RailsMode railsMode; 50 RailsMode railsMode;
51 51
52 // Whether the event is blocking, non-blocking, all event 52 // Whether the event is blocking, non-blocking, all event
53 // listeners were passive or was forced to be non-blocking. 53 // listeners were passive or was forced to be non-blocking.
54 DispatchType dispatchType; 54 DispatchType dispatchType;
55 55
56 WebMouseWheelEvent() 56 WebMouseWheelEvent(Type type, int modifiers, double timeStampSeconds)
57 : WebMouseEvent(sizeof(WebMouseWheelEvent)), 57 : WebMouseEvent(sizeof(WebMouseWheelEvent),
58 type,
59 modifiers,
60 timeStampSeconds),
58 deltaX(0.0f), 61 deltaX(0.0f),
59 deltaY(0.0f), 62 deltaY(0.0f),
60 wheelTicksX(0.0f), 63 wheelTicksX(0.0f),
61 wheelTicksY(0.0f), 64 wheelTicksY(0.0f),
62 accelerationRatioX(1.0f), 65 accelerationRatioX(1.0f),
63 accelerationRatioY(1.0f), 66 accelerationRatioY(1.0f),
64 resendingPluginId(-1), 67 resendingPluginId(-1),
65 phase(PhaseNone), 68 phase(PhaseNone),
66 momentumPhase(PhaseNone), 69 momentumPhase(PhaseNone),
67 scrollByPage(false), 70 scrollByPage(false),
68 hasPreciseScrollingDeltas(false), 71 hasPreciseScrollingDeltas(false),
69 railsMode(RailsModeFree), 72 railsMode(RailsModeFree),
70 dispatchType(Blocking) {} 73 dispatchType(Blocking) {}
74
75 WebMouseWheelEvent()
76 : WebMouseEvent(sizeof(WebMouseWheelEvent)),
77 deltaX(0.0f),
78 deltaY(0.0f),
79 wheelTicksX(0.0f),
80 wheelTicksY(0.0f),
81 accelerationRatioX(1.0f),
82 accelerationRatioY(1.0f),
83 resendingPluginId(-1),
84 phase(PhaseNone),
85 momentumPhase(PhaseNone),
86 railsMode(RailsModeFree),
87 dispatchType(Blocking) {}
71 }; 88 };
72 #pragma pack(pop) 89 #pragma pack(pop)
73 90
74 } // namespace blink 91 } // namespace blink
75 92
76 #endif // WebMouseWheelEvent_h 93 #endif // WebMouseWheelEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698