From 80f8b9f5cf620c37e9d1408a114dc90699584d89 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 16 Oct 2008 18:17:47 +0000 Subject: Make View::SetBounds take a const gfx::Rect& instead of a const CRect& Make View::DidChangeBounds call Layout by default, eliminating this function from most places. http://crbug.com/2186 Review URL: http://codereview.chromium.org/7429 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3471 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/rect.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base/gfx/rect.h') diff --git a/base/gfx/rect.h b/base/gfx/rect.h index a7a3d9c..ac730bd 100644 --- a/base/gfx/rect.h +++ b/base/gfx/rect.h @@ -74,6 +74,9 @@ class Rect { // Shrink the rectangle by a horizontal and vertical distance on all sides. void Inset(int horizontal, int vertical); + // Shrink the rectangle by the specified amount on each side. + void Inset(int left, int top, int right, int bottom); + // Move the rectangle by a horizontal and vertical distance. void Offset(int horizontal, int vertical); -- cgit v1.1