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

Unified Diff: third_party/WebKit/public/platform/WebGestureEvent.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/WebGestureEvent.h
diff --git a/third_party/WebKit/public/platform/WebGestureEvent.h b/third_party/WebKit/public/platform/WebGestureEvent.h
index b7691fb3efdb1918539ca47ff8aa3449151382e5..838370f19b802a46ac548f0cdf00d7ff3dc75b0c 100644
--- a/third_party/WebKit/public/platform/WebGestureEvent.h
+++ b/third_party/WebKit/public/platform/WebGestureEvent.h
@@ -155,12 +155,16 @@ class WebGestureEvent : public WebInputEvent {
} pinchUpdate;
} data;
+ WebGestureEvent(Type type, int modifiers, double timeStampSeconds)
+ : WebInputEvent(sizeof(WebGestureEvent),
+ type,
+ modifiers,
+ timeStampSeconds),
+ sourceDevice(WebGestureDeviceUninitialized),
+ resendingPluginId(-1) {}
+
WebGestureEvent()
: WebInputEvent(sizeof(WebGestureEvent)),
- x(0),
- y(0),
- globalX(0),
- globalY(0),
sourceDevice(WebGestureDeviceUninitialized),
resendingPluginId(-1) {}

Powered by Google App Engine
This is Rietveld 408576698