Index: ui/gfx/insets.h |
diff --git a/ui/gfx/insets.h b/ui/gfx/insets.h |
index 147d58fa2305227f518d51179df98eec6367500d..9cf5e0aca09ce3642cb871c55baaface57124926 100644 |
--- a/ui/gfx/insets.h |
+++ b/ui/gfx/insets.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -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; |