From 0af29d8cedd97d4604619dd4ab2b5e0a0805ecb1 Mon Sep 17 00:00:00 2001 From: "mnissler@chromium.org" Date: Tue, 6 Jul 2010 07:48:58 +0000 Subject: 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 --- gfx/rect.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gfx/rect.cc') diff --git a/gfx/rect.cc b/gfx/rect.cc index dd8f392..ea328beb 100644 --- a/gfx/rect.cc +++ b/gfx/rect.cc @@ -15,6 +15,7 @@ #include #include "base/logging.h" +#include "gfx/insets.h" namespace { @@ -105,6 +106,10 @@ void Rect::SetRect(int x, int y, int width, int height) { set_height(height); } +void Rect::Inset(const gfx::Insets& insets) { + Inset(insets.left(), insets.top(), insets.right(), insets.bottom()); +} + void Rect::Inset(int left, int top, int right, int bottom) { Offset(left, top); set_width(std::max(width() - left - right, 0)); -- cgit v1.1