summaryrefslogtreecommitdiffstats
path: root/gfx/rect.h
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-06 07:48:58 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-06 07:48:58 +0000
commit0af29d8cedd97d4604619dd4ab2b5e0a0805ecb1 (patch)
tree3c9f00670a268464b963443a7de96728fb32e0be /gfx/rect.h
parent6e094094ed8b96e68b30e8628e8a169719edda27 (diff)
downloadchromium_src-0af29d8cedd97d4604619dd4ab2b5e0a0805ecb1.zip
chromium_src-0af29d8cedd97d4604619dd4ab2b5e0a0805ecb1.tar.gz
chromium_src-0af29d8cedd97d4604619dd4ab2b5e0a0805ecb1.tar.bz2
Display warning banner in Win preferences dialog for managed options.
BUG=43423 TEST=box_layout_unittest.cc, manual UI tests. Review URL: http://codereview.chromium.org/2738002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/rect.h')
-rw-r--r--gfx/rect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gfx/rect.h b/gfx/rect.h
index 1c83f48..f1e43a7 100644
--- a/gfx/rect.h
+++ b/gfx/rect.h
@@ -25,6 +25,8 @@ typedef struct _GdkRectangle GdkRectangle;
namespace gfx {
+class Insets;
+
class Rect {
public:
Rect();
@@ -78,6 +80,9 @@ class Rect {
Inset(horizontal, vertical, horizontal, vertical);
}
+ // Shrink the rectangle by the given insets.
+ void Inset(const gfx::Insets& insets);
+
// Shrink the rectangle by the specified amount on each side.
void Inset(int left, int top, int right, int bottom);