| Index: ui/gfx/point.h
|
| diff --git a/ui/gfx/point.h b/ui/gfx/point.h
|
| index dfb227d190eb22afb01371d9f2ba35e12969bf27..4bf9d55e354ee3ba5a3e4bcf1cd8227cb931e9bb 100644
|
| --- a/ui/gfx/point.h
|
| +++ b/ui/gfx/point.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "ui/base/ui_export.h"
|
| #include "ui/gfx/point_base.h"
|
| +#include "ui/gfx/point_f.h"
|
|
|
| #if defined(OS_WIN)
|
| typedef unsigned long DWORD;
|
| @@ -43,10 +44,22 @@ class UI_EXPORT Point : public PointBase<Point, int> {
|
| CGPoint ToCGPoint() const;
|
| #endif
|
|
|
| + PointF ToPointF() const {
|
| + return PointF(x(), y());
|
| + }
|
| +
|
| // Returns a string representation of point.
|
| std::string ToString() const;
|
| };
|
|
|
| +inline Point operator+(Point lhs, Point rhs) {
|
| + return lhs.Add(rhs);
|
| +}
|
| +
|
| +inline Point operator-(Point lhs, Point rhs) {
|
| + return lhs.Subtract(rhs);
|
| +}
|
| +
|
| #if !defined(COMPILER_MSVC)
|
| extern template class PointBase<Point, int>;
|
| #endif
|
|
|