summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/tab_strip_controller.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 20:45:10 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 20:45:10 +0000
commit3e2bfcf0ae9e0e81c091294460fdbeaef51f47ad (patch)
treea83837a4e6f7b5dd475703f5876d472c5e8429ec /chrome/browser/cocoa/tab_strip_controller.h
parentad1f9bd8c87effc13dd2c1415862d88a9bab2a17 (diff)
downloadchromium_src-3e2bfcf0ae9e0e81c091294460fdbeaef51f47ad.zip
chromium_src-3e2bfcf0ae9e0e81c091294460fdbeaef51f47ad.tar.gz
chromium_src-3e2bfcf0ae9e0e81c091294460fdbeaef51f47ad.tar.bz2
Fix tab dragging to always hide the new tab button while dragging a tab or targeting an existing window. Makes things much nicer.
BUG=14923, 14925, 15667 TEST=dragging tabs in and out of windows, and within windows. Make sure new tab button goes away when it should and always comes back. Review URL: http://codereview.chromium.org/160345 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_strip_controller.h')
-rw-r--r--chrome/browser/cocoa/tab_strip_controller.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.h b/chrome/browser/cocoa/tab_strip_controller.h
index 46924ef..68c7ce4 100644
--- a/chrome/browser/cocoa/tab_strip_controller.h
+++ b/chrome/browser/cocoa/tab_strip_controller.h
@@ -57,6 +57,8 @@ class ToolbarModel;
// aren't coalesced, so we store frames to avoid redundant calls.
scoped_nsobject<NSMutableDictionary> targetFrames_;
NSRect newTabTargetFrame_;
+ // If YES, do not show the new tab button during layout.
+ BOOL forceNewTabButtonHidden_;
// Width available for resizing the tabs (doesn't include the new tab
// button). Used to restrict the available width when closing many tabs at
@@ -107,6 +109,10 @@ class ToolbarModel;
frame:(NSRect)frame
yStretchiness:(CGFloat)yStretchiness;
+// Show or hide the new tab button. The button is hidden immediately, but
+// waits until the next call to |-layoutTabs| to show it again.
+- (void)showNewTabButton:(BOOL)show;
+
// Force the tabs to rearrange themselves to reflect the current model.
- (void)layoutTabs;