Chromium Code Reviews| Index: ui/gfx/point_f.h |
| diff --git a/ui/gfx/point_f.h b/ui/gfx/point_f.h |
| index e1871d81dea715ed43407f955273624f8c75b607..ff1c4dfdff0912077ea580070c0ffcc53b191964 100644 |
| --- a/ui/gfx/point_f.h |
| +++ b/ui/gfx/point_f.h |
| @@ -11,22 +11,26 @@ |
| #include "ui/gfx/point_base.h" |
| namespace gfx { |
| -class Point; |
| // A floating version of gfx::Point. |
| class UI_EXPORT PointF : public PointBase<PointF, float> { |
| public: |
| PointF(); |
| PointF(float x, float y); |
| - explicit PointF(Point& point); |
| - ~PointF() {} |
| - |
| - Point ToPoint() const; |
| + ~PointF(); |
| // Returns a string representation of point. |
| std::string ToString() const; |
| }; |
| +inline PointF operator+(PointF lhs, PointF rhs) { |
|
sky
2012/10/01 21:02:20
const Point& here (and 30).
danakj
2012/10/01 22:03:37
Done.
|
| + return lhs.Add(rhs); |
| +} |
| + |
| +inline PointF operator-(PointF lhs, PointF rhs) { |
| + return lhs.Subtract(rhs); |
| +} |
| + |
| #if !defined(COMPILER_MSVC) |
| extern template class PointBase<PointF, float>; |
| #endif |