Chromium Code Reviews| Index: ui/gfx/geometry/insets.h |
| diff --git a/ui/gfx/geometry/insets.h b/ui/gfx/geometry/insets.h |
| index bc5e3460ca3bdff536c43c01226566aa11bde4e3..3a202c38eb0da6d8bc945c5b3cc51d437cd610e4 100644 |
| --- a/ui/gfx/geometry/insets.h |
| +++ b/ui/gfx/geometry/insets.h |
| @@ -12,6 +12,8 @@ |
| namespace gfx { |
| +class Vector2d; |
| + |
| // Represents the widths of the four borders or margins of an unspecified |
| // rectangle. An Insets stores the thickness of the top, left, bottom and right |
| // edges, without storing the actual size and position of the rectangle itself. |
| @@ -118,6 +120,8 @@ inline Insets operator-(Insets lhs, const Insets& rhs) { |
| return lhs; |
| } |
| +GFX_EXPORT Insets operator+(const Insets& insets, const gfx::Vector2d& vector); |
|
Evan Stade
2016/10/27 17:12:14
I've wanted this before --- I think it will get us
varkha
2016/10/27 19:02:00
Does it make sense to add a short doc here to avoi
Evan Stade
2016/10/27 19:08:47
I don't think so. We don't do it for any other ope
|
| + |
| } // namespace gfx |
| #endif // UI_GFX_GEOMETRY_INSETS_H_ |