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

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

Issue 2646163002: Remove PlatformTouchEvent/Point and use WebTouchEvent/Point instead (Closed)
Patch Set: Fix nit 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..a0580943b8c5bdb9d457cef42bbf8f349566bf1d 100644
--- a/third_party/WebKit/public/platform/WebTouchEvent.h
+++ b/third_party/WebKit/public/platform/WebTouchEvent.h
@@ -48,6 +48,19 @@ 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;
+
+ // Return a scaled WebTouchPoint in root frame coordinates.
+ BLINK_PLATFORM_EXPORT WebTouchPoint
+ touchPointInRootFrame(unsigned touchPoint) const;
+
+ bool isCancelable() const { return dispatchType == Blocking; }
+#endif
};
#pragma pack(pop)

Powered by Google App Engine
This is Rietveld 408576698