summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_controller_private.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 21:27:50 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 21:27:50 +0000
commit79fed69d92dede3b92fd3a175b520ae6949f9233 (patch)
tree85eb64e16e6bd40f974eb89f8326ffbb142e8bee /chrome/browser/cocoa/browser_window_controller_private.h
parentc8af9bba42a3f9275220c65b4aef626d2387140c (diff)
downloadchromium_src-79fed69d92dede3b92fd3a175b520ae6949f9233.zip
chromium_src-79fed69d92dede3b92fd3a175b520ae6949f9233.tar.gz
chromium_src-79fed69d92dede3b92fd3a175b520ae6949f9233.tar.bz2
Initial cut at scaffolding for mac sidetabs. No visible changes to browser without --enable-vertical-tabs, and even then, don't expect it to work.
BUG=44773 TEST=infobars, bookmark bar, tab strip, etc should all behave correctly when showing, hiding, and widnow resizing. This cl should have no visible impact without the above flag on the command line. Review URL: http://codereview.chromium.org/2475002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller_private.h')
-rw-r--r--chrome/browser/cocoa/browser_window_controller_private.h38
1 files changed, 23 insertions, 15 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller_private.h b/chrome/browser/cocoa/browser_window_controller_private.h
index 26bab84..29bd3c6 100644
--- a/chrome/browser/cocoa/browser_window_controller_private.h
+++ b/chrome/browser/cocoa/browser_window_controller_private.h
@@ -16,6 +16,9 @@
// "dependencies").
@interface BrowserWindowController(Private)
+// Returns YES if vertical tabs are enabled for this browser.
+- (BOOL)useVerticalTabs;
+
// Saves the window's position in the local state preferences.
- (void)saveWindowPositionIfNeeded;
@@ -58,31 +61,32 @@
// call it with the appropriate |maxY| which depends on whether or not the
// bookmark bar is shown as the NTP bubble or not (use
// |-placeBookmarkBarBelowInfoBar|).
-- (CGFloat)layoutBookmarkBarAtMaxY:(CGFloat)maxY width:(CGFloat)width;
+- (CGFloat)layoutBookmarkBarAtMinX:(CGFloat)minX
+ maxY:(CGFloat)maxY
+ width:(CGFloat)width;
// Lay out the view which draws the background for the floating bar when in
-// fullscreen mode, with the given (minimum) y-coordinate, width, height, and
-// fullscreen-mode-status. Should be called even when not in fullscreen mode to
-// hide the backing view.
-- (void)layoutFloatingBarBackingViewAtY:(CGFloat)y
- width:(CGFloat)width
- height:(CGFloat)height
- fullscreen:(BOOL)fullscreen;
+// fullscreen mode, with the given frame and fullscreen-mode-status. Should be
+// called even when not in fullscreen mode to hide the backing view.
+- (void)layoutFloatingBarBackingView:(NSRect)frame
+ fullscreen:(BOOL)fullscreen;
// Lays out the infobar at the given maximum y-coordinate, with the given width;
// returns the new maximum y (below the infobar).
-- (CGFloat)layoutInfoBarAtMaxY:(CGFloat)maxY width:(CGFloat)width;
+- (CGFloat)layoutInfoBarAtMinX:(CGFloat)minX
+ maxY:(CGFloat)maxY
+ width:(CGFloat)width;
// Lays out the download shelf, if there is one, at the given minimum
// y-coordinate, with the given width; returns the new minimum y (above the
// download shelf). This is safe to call even if there is no download shelf.
-- (CGFloat)layoutDownloadShelfAtMinY:(CGFloat)minY width:(CGFloat)width;
+- (CGFloat)layoutDownloadShelfAtMinX:(CGFloat)minX
+ minY:(CGFloat)minY
+ width:(CGFloat)width;
-// Lays out the tab content area between the given minimum and maximum
-// y-coordinates, with the given width.
-- (void)layoutTabContentAreaAtMinY:(CGFloat)minY
- maxY:(CGFloat)maxY
- width:(CGFloat)width;
+// Lays out the tab content area in the given frame. If the height changes,
+// sends a message to the renderer to resize.
+- (void)layoutTabContentArea:(NSRect)frame;
// Should we show the normal bookmark bar?
- (BOOL)shouldShowBookmarkBar;
@@ -105,6 +109,10 @@
- (void)enableBarVisibilityUpdates;
- (void)disableBarVisibilityUpdates;
+// Removes existing toolbar and re-creates the appropriate toolbar controller
+// based on if vertical tabs are enabled.
+- (void)initializeToolbarWithBrowser:(Browser*)browser;
+
@end // @interface BrowserWindowController(Private)