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

Unified Diff: cc/math_util.h

Issue 12280014: cc: Don't consider HUD layer for touches (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved funcs around Created 7 years, 10 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: cc/math_util.h
diff --git a/cc/math_util.h b/cc/math_util.h
index 8c1ca88675dbde5e7aee2e77ab6ad0d1684beee0..468afad0ca458bcc457fd71b29565f79d48daa93 100644
--- a/cc/math_util.h
+++ b/cc/math_util.h
@@ -119,6 +119,9 @@ public:
// Projects the |source| vector onto |destination|. Neither vector is assumed to be normalized.
static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF destination);
+ // Returns true if screen point hits a rect
+ static bool pointHitsRect(const gfx::PointF& screenSpacePoint, const gfx::Transform& localSpaceToScreenSpaceTransform, gfx::RectF localSpaceRect);
+
// Conversion to value.
static scoped_ptr<base::Value> asValue(gfx::Size s);
static scoped_ptr<base::Value> asValue(gfx::PointF q);

Powered by Google App Engine
This is Rietveld 408576698