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

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

Issue 298133003: Expose fractional TouchEvent coordinates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make layout test output stable across platforms 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
« no previous file with comments | « Source/platform/Widget.cpp ('k') | Source/platform/geometry/FloatSize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/platform/Widget.cpp ('k') | Source/platform/geometry/FloatSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698