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

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

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: 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..97eec2d3ee508ac4c098da7a45b9fccf360981de 100644
--- a/third_party/WebKit/public/platform/WebInputEvent.h
+++ b/third_party/WebKit/public/platform/WebInputEvent.h
@@ -229,6 +229,9 @@ class WebInputEvent {
unsigned size; // The size of this structure, for serialization.
Type type;
int modifiers;
+ float frameScale; // Scalar applied at frame time.
majidvp 2016/12/01 15:46:31 frame time? do you mean frame conversion time?
dtapuska 2016/12/01 16:26:43 Ya this comment needs some work. I mean that when
+ float frameTranslateX; // post scale translation x value.
+ float frameTranslateY; // post scale translation y value.
majidvp 2016/12/01 15:46:31 should frameTranslateX and frameTranslateY just be
dtapuska 2016/12/01 16:26:43 WebFloatPoint isn't packed. So I might be able to
// Returns true if the WebInputEvent |type| is a mouse event.
static bool isMouseEventType(int type) {
@@ -271,6 +274,7 @@ class WebInputEvent {
size = sizeParam;
type = Undefined;
modifiers = 0;
+ frameScale = 1.0f;
}
};

Powered by Google App Engine
This is Rietveld 408576698