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 --- chrome/browser/views/bookmark_bar_view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/views/bookmark_bar_view.h') diff --git a/chrome/browser/views/bookmark_bar_view.h b/chrome/browser/views/bookmark_bar_view.h index ae20fae..ee978e3 100644 --- a/chrome/browser/views/bookmark_bar_view.h +++ b/chrome/browser/views/bookmark_bar_view.h @@ -88,7 +88,8 @@ class BookmarkBarView : public ChromeViews::View, // View methods: virtual gfx::Size GetPreferredSize(); virtual void Layout(); - virtual void DidChangeBounds(const CRect& previous, const CRect& current); + virtual void DidChangeBounds(const gfx::Rect& previous, + const gfx::Rect& current); virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); virtual void Paint(ChromeCanvas* canvas); virtual void PaintChildren(ChromeCanvas* canvas); -- cgit v1.1