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-03-26 15:30:28 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 15:30:28 +0000
commit3d1104f27426048f4a951a614507b047fc7fd416 (patch)
tree559ee421338ba8fd85ea072bcde1003602086f30 /chrome/browser/cocoa/tab_window_controller.h
parent10f2e7c37e44d513524f816a230d47b503362460 (diff)
downloadchromium_src-3d1104f27426048f4a951a614507b047fc7fd416.zip
chromium_src-3d1104f27426048f4a951a614507b047fc7fd416.tar.gz
chromium_src-3d1104f27426048f4a951a614507b047fc7fd416.tar.bz2
Allow live tabs to be dragged out of a window. Change TabStripModel such that
the caller must now explicitly show the newly created browser rather than it happening automatically. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_window_controller.h')
-rw-r--r--chrome/browser/cocoa/tab_window_controller.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/tab_window_controller.h b/chrome/browser/cocoa/tab_window_controller.h
index fee790a..f0fcb524 100644
--- a/chrome/browser/cocoa/tab_window_controller.h
+++ b/chrome/browser/cocoa/tab_window_controller.h
@@ -19,9 +19,14 @@
@interface TabWindowController : NSWindowController {
@private
- IBOutlet NSBox* contentBox_;
+ IBOutlet NSBox* contentBox_; // Only valid at window creation time, used
+ // to position the tab strip. nil afterwards.
+ // TODO(pinkerton): get rid of this.
IBOutlet TabStripView* tabStripView_;
- NSWindow* overlayWindow_; // used during dragging
+ NSWindow* overlayWindow_; // Used during dragging for window opacity tricks
+ NSView* cachedContentView_; // Used during dragging for identifying which
+ // view is the proper content area in the overlay
+ // (weak)
}
@property(readonly, nonatomic) TabStripView* tabStripView;
@@ -30,6 +35,7 @@
- (void)showOverlay;
- (void)removeOverlay;
- (void)removeOverlayAfterDelay:(NSTimeInterval)delay;
+- (NSWindow*)overlayWindow;
// A collection of methods, stubbed out in this base class, that provide
// the implementation of tab dragging based on whatever model is most
@@ -50,6 +56,10 @@
// Removes the placeholder installed by |-insertPlaceholderForTab:atLocation:|.
- (void)removePlaceholder;
+// Number of tabs in the tab strip. Useful, for example, to know if we're
+// dragging the only tab in the window.
+- (NSInteger)numberOfTabs;
+
@end
#endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_