Index: ui/gfx/point.h |
diff --git a/ui/gfx/point.h b/ui/gfx/point.h |
index 1f437cdf33c677f124e55bb1f50eb1989759a508..5984d74655d9ab14ddda6074f703e72e7ad88da0 100644 |
--- a/ui/gfx/point.h |
+++ b/ui/gfx/point.h |
@@ -44,7 +44,7 @@ class UI_EXPORT Point : public PointBase<Point, int> { |
CGPoint ToCGPoint() const; |
#endif |
- PointF ToPointF() const { |
+ operator PointF() const { |
return PointF(x(), y()); |
} |
@@ -60,6 +60,14 @@ class UI_EXPORT Point : public PointBase<Point, int> { |
std::string ToString() const; |
}; |
+inline bool operator==(const Point& lhs, const Point& rhs) { |
+ return lhs.x() == rhs.x() && lhs.y() == rhs.y(); |
+} |
+ |
+inline bool operator!=(const Point& lhs, const Point& rhs) { |
+ return !(lhs == rhs); |
+} |
+ |
inline Point operator+(Point lhs, Point rhs) { |
return lhs.Add(rhs); |
} |