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

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: Fix mouse up event sender not modifying modifiers Created 4 years 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 791562f026cef28315ce63a0f281d94c03992b14..aa8476a9f923d2a221c46db0c5439257614830d4 100644
--- a/third_party/WebKit/public/platform/WebGestureEvent.h
+++ b/third_party/WebKit/public/platform/WebGestureEvent.h
@@ -154,12 +154,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