| 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);
|
|
|