Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: ui/gfx/insets.h

Issue 9187061: Preliminary implementation of Google-style dialogs in ash::internal::DialogFrameView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698