From 6dcefa2aded298fa4015a5da4f54e56c65061ab0 Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Wed, 5 Aug 2009 19:55:29 +0000 Subject: Rewrites the Mac view resizing logic to have the BrowserWindowController directly resize and relayout its children views. Now when a view needs to be resized, it asks its resize delegate (typically its controller's parent) to perform the resize. BUG=http://crbug.com/17619 TEST=Make sure that views are laid out correctly, even when they change size. Open and close the bookmark bar. Trigger an infobar and then close it. Trigger the download shelf and then close it. Trigger a download shelf with the infobar open, or with the bookmark bar open. Switch to and from fullscreen with various bars open. Resize the browser window with various bars open. Start the browser with and without the bookmark bar open. Try all of the above in a popup window. Review URL: http://codereview.chromium.org/159776 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22517 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/browser_window_controller.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chrome/browser/cocoa/browser_window_controller.h') diff --git a/chrome/browser/cocoa/browser_window_controller.h b/chrome/browser/cocoa/browser_window_controller.h index 382acf2..5ebbbf0 100644 --- a/chrome/browser/cocoa/browser_window_controller.h +++ b/chrome/browser/cocoa/browser_window_controller.h @@ -16,6 +16,7 @@ #include "base/scoped_ptr.h" #import "chrome/browser/cocoa/tab_window_controller.h" #import "chrome/browser/cocoa/bookmark_bar_controller.h" +#import "chrome/browser/cocoa/view_resizer.h" #import "third_party/GTM/AppKit/GTMTheme.h" class Browser; @@ -37,6 +38,7 @@ class TabStripModelObserverBridge; @interface BrowserWindowController : TabWindowController { @private // The ordering of these members is important as it determines the order in @@ -124,10 +126,6 @@ class TabStripModelObserverBridge; // Returns fullscreen state. - (BOOL)isFullscreen; -// Sent when the infobar view has been resized and other content needs -// to be shifted around it. -- (void)infoBarResized:(float)newHeight; - // The user changed the theme. - (void)userChangedTheme; -- cgit v1.1