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

Unified Diff: third_party/WebKit/public/platform/WebInputEvent.h

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: Rebase and fix comments 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/WebInputEvent.h
diff --git a/third_party/WebKit/public/platform/WebInputEvent.h b/third_party/WebKit/public/platform/WebInputEvent.h
index 2133aaea5b8fd2487290e608eb4a316a31d67035..92d955b5137bf9fa9d3a5a9ccdff4abb6924e3c8 100644
--- a/third_party/WebKit/public/platform/WebInputEvent.h
+++ b/third_party/WebKit/public/platform/WebInputEvent.h
@@ -230,6 +230,12 @@ class WebInputEvent {
Type type;
int modifiers;
+ // The root frame scale.
+ float frameScale;
+
+ // The root frame translation (applied post scale).
+ WebFloatPoint frameTranslate;
+
// Returns true if the WebInputEvent |type| is a mouse event.
static bool isMouseEventType(int type) {
return MouseTypeFirst <= type && type <= MouseTypeLast;
@@ -271,6 +277,7 @@ class WebInputEvent {
size = sizeParam;
type = Undefined;
modifiers = 0;
+ frameScale = 1.0f;
}
};

Powered by Google App Engine
This is Rietveld 408576698