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

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

Issue 2646163002: Remove PlatformTouchEvent/Point and use WebTouchEvent/Point instead (Closed)
Patch Set: Rebase Created 3 years, 11 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/WebTouchEvent.h
diff --git a/third_party/WebKit/public/platform/WebTouchEvent.h b/third_party/WebKit/public/platform/WebTouchEvent.h
index 4a011b31b27802a399ce8ca94bfb876897a3c234..be161dad25f44d5f4be7f105c06fac3724d5a83b 100644
--- a/third_party/WebKit/public/platform/WebTouchEvent.h
+++ b/third_party/WebKit/public/platform/WebTouchEvent.h
@@ -48,6 +48,17 @@ class WebTouchEvent : public WebInputEvent {
WebTouchEvent(Type type, int modifiers, double timeStampSeconds)
: WebInputEvent(sizeof(WebTouchEvent), type, modifiers, timeStampSeconds),
dispatchType(Blocking) {}
+
+#if INSIDE_BLINK
+
+ // Sets any scaled values to be their computed values and sets |frameScale|
+ // back to 1 and |translateX|, |translateY| back to 0.
+ BLINK_PLATFORM_EXPORT WebTouchEvent flattenTransform() const;
+ BLINK_PLATFORM_EXPORT WebTouchPoint
Rick Byers 2017/01/27 17:27:59 nit: please add a comment describing the purpose o
dtapuska 2017/01/27 19:22:50 Done.
+ touchPointInRootFrame(unsigned touchPoint) const;
+
+ bool isCancelable() const { return dispatchType == Blocking; }
+#endif
};
#pragma pack(pop)

Powered by Google App Engine
This is Rietveld 408576698