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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebMouseWheelEvent.h
diff --git a/third_party/WebKit/public/platform/WebMouseWheelEvent.h b/third_party/WebKit/public/platform/WebMouseWheelEvent.h
index da654f7d62207b0e9dbbd62ae2e2cd9f5f7017e5..a252e638e108687f27070bf3d33bead94c75b0bc 100644
--- a/third_party/WebKit/public/platform/WebMouseWheelEvent.h
+++ b/third_party/WebKit/public/platform/WebMouseWheelEvent.h
@@ -53,8 +53,11 @@ class WebMouseWheelEvent : public WebMouseEvent {
// listeners were passive or was forced to be non-blocking.
DispatchType dispatchType;
- WebMouseWheelEvent()
- : WebMouseEvent(sizeof(WebMouseWheelEvent)),
+ WebMouseWheelEvent(Type type, int modifiers, double timeStampSeconds)
+ : WebMouseEvent(sizeof(WebMouseWheelEvent),
+ type,
+ modifiers,
+ timeStampSeconds),
deltaX(0.0f),
deltaY(0.0f),
wheelTicksX(0.0f),
@@ -68,6 +71,20 @@ class WebMouseWheelEvent : public WebMouseEvent {
hasPreciseScrollingDeltas(false),
railsMode(RailsModeFree),
dispatchType(Blocking) {}
+
+ WebMouseWheelEvent()
+ : WebMouseEvent(sizeof(WebMouseWheelEvent)),
+ deltaX(0.0f),
+ deltaY(0.0f),
+ wheelTicksX(0.0f),
+ wheelTicksY(0.0f),
+ accelerationRatioX(1.0f),
+ accelerationRatioY(1.0f),
+ resendingPluginId(-1),
+ phase(PhaseNone),
+ momentumPhase(PhaseNone),
+ railsMode(RailsModeFree),
+ dispatchType(Blocking) {}
};
#pragma pack(pop)

Powered by Google App Engine
This is Rietveld 408576698