Chromium Code Reviews| Index: ui/gfx/insets.h |
| diff --git a/ui/gfx/insets.h b/ui/gfx/insets.h |
| index 147d58fa2305227f518d51179df98eec6367500d..b681c0de4c85292bba832116ce40432fbed44d14 100644 |
| --- a/ui/gfx/insets.h |
| +++ b/ui/gfx/insets.h |
| @@ -80,6 +80,10 @@ class UI_EXPORT Insets { |
| return *this; |
| } |
| + Insets operator-() const { |
| + return Insets(-top_, -left_, -bottom_, -right_); |
| + } |
| + |
| // Returns a string representation of the insets. |
| std::string ToString() const; |