Chromium Code Reviews| Index: ui/gfx/point.h |
| diff --git a/ui/gfx/point.h b/ui/gfx/point.h |
| index 4bf9d55e354ee3ba5a3e4bcf1cd8227cb931e9bb..1f437cdf33c677f124e55bb1f50eb1989759a508 100644 |
| --- a/ui/gfx/point.h |
| +++ b/ui/gfx/point.h |
| @@ -48,6 +48,14 @@ class UI_EXPORT Point : public PointBase<Point, int> { |
| return PointF(x(), y()); |
| } |
| + PointF Scale(float scale) const WARN_UNUSED_RESULT { |
| + return Scale(scale, scale); |
| + } |
| + |
| + PointF Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT { |
| + return PointF(x() * x_scale, y() * y_scale); |
| + } |
| + |
| // Returns a string representation of point. |
| std::string ToString() const; |
| }; |