Index: ui/gfx/point_f.h |
diff --git a/ui/gfx/point_f.h b/ui/gfx/point_f.h |
index a0b367f9789ea165b4efd8873720c3223e96d6ca..d6cded9c6fe11a7380518e6d35426862d19a6043 100644 |
--- a/ui/gfx/point_f.h |
+++ b/ui/gfx/point_f.h |
@@ -31,6 +31,14 @@ class UI_EXPORT PointF : public PointBase<PointF, float> { |
std::string ToString() const; |
}; |
+inline bool operator==(const PointF& lhs, const PointF& rhs) { |
+ return lhs.x() == rhs.x() && lhs.y() == rhs.y(); |
+} |
+ |
+inline bool operator!=(const PointF& lhs, const PointF& rhs) { |
+ return !(lhs == rhs); |
+} |
+ |
inline PointF operator+(PointF lhs, PointF rhs) { |
return lhs.Add(rhs); |
} |