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

Unified Diff: Source/platform/geometry/FloatPoint.h

Issue 298133003: Expose fractional TouchEvent coordinates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 6 years, 6 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: Source/platform/geometry/FloatPoint.h
diff --git a/Source/platform/geometry/FloatPoint.h b/Source/platform/geometry/FloatPoint.h
index f042f5741e2ab2b6e73a5a62bd6e9dc922e7188c..a83f7e593f8785543a11d497647b928c19764030 100644
--- a/Source/platform/geometry/FloatPoint.h
+++ b/Source/platform/geometry/FloatPoint.h
@@ -133,6 +133,11 @@ public:
return FloatPoint(m_y, m_x);
}
+ FloatPoint scaledBy(float scale) const
+ {
+ return FloatPoint(m_x * scale, m_y * scale);
+ }
+
#if OS(MACOSX)
FloatPoint(const CGPoint&);
operator CGPoint() const;

Powered by Google App Engine
This is Rietveld 408576698