summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/tab_window_controller.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 19:03:39 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 19:03:39 +0000
commit2feb19b125ef3fd6bebef1b5eefd08e92523d897 (patch)
tree13d5f0ce125e06b367fc1170fdc3556655b1ba6e /chrome/browser/cocoa/tab_window_controller.h
parentc6b5b4f6a3f379e01299292f36b626d491912366 (diff)
downloadchromium_src-2feb19b125ef3fd6bebef1b5eefd08e92523d897.zip
chromium_src-2feb19b125ef3fd6bebef1b5eefd08e92523d897.tar.gz
chromium_src-2feb19b125ef3fd6bebef1b5eefd08e92523d897.tar.bz2
Support for tabs reaching a threshold before tearing off (magnetism), showing position of where the tab will go in the destination tab strip. Use new close box icon. Don't draw the tab title over the close box. Patch from alcor@google.com
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_window_controller.h')
-rw-r--r--chrome/browser/cocoa/tab_window_controller.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/tab_window_controller.h b/chrome/browser/cocoa/tab_window_controller.h
index 60d13de..e86c829 100644
--- a/chrome/browser/cocoa/tab_window_controller.h
+++ b/chrome/browser/cocoa/tab_window_controller.h
@@ -47,7 +47,7 @@
// appropriate.
// Layout the tabs based on the current ordering of the model.
-- (void)arrangeTabs;
+- (void)layoutTabs;
// Creates a new window by pulling the given tab out and placing it in
// the new window. Returns the controller for the new window. The size of the
@@ -55,8 +55,9 @@
- (TabWindowController*)detachTabToNewWindow:(TabView*)tabView;
// Make room in the tab strip for |tab| at the given x coordinate.
-// TODO(pink): is |tab| a necessary parameter?
-- (void)insertPlaceholderForTab:(TabView*)tab atLocation:(NSInteger)xLocation;
+- (void)insertPlaceholderForTab:(TabView*)tab
+ frame:(NSRect)frame
+ yStretchiness:(CGFloat)yStretchiness;
// Removes the placeholder installed by |-insertPlaceholderForTab:atLocation:|.
- (void)removePlaceholder;
@@ -65,6 +66,12 @@
// dragging the only tab in the window.
- (NSInteger)numberOfTabs;
+// Return the view of the selected tab.
+- (NSView *)selectedTabView;
+
+// Drop a given tab view at a new index.
+- (void)dropTabView:(NSView *)view atIndex:(NSUInteger)index;
+
// The title of the selected tab.
- (NSString*)selectedTabTitle;