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..e8dae2ab502c6f9266775ba81e9792b030416073 100644 |
| --- a/ui/gfx/point_f.h |
| +++ b/ui/gfx/point_f.h |
| @@ -11,22 +11,27 @@ |
| #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(const PointF& other); |
|
sky
2012/09/28 23:05:49
Why remove the explicit?
|
| + ~PointF(); |
| // Returns a string representation of point. |
| std::string ToString() const; |
| }; |
| +inline PointF operator+(PointF lhs, PointF rhs) { |
| + 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 |