| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C window controller for a window that has | 8 // A class acting as the Objective-C window controller for a window that has |
| 9 // tabs which can be dragged around. Tabs can be re-arranged within the same | 9 // tabs which can be dragged around. Tabs can be re-arranged within the same |
| 10 // window or dragged into other TabWindowController windows. This class doesn't | 10 // window or dragged into other TabWindowController windows. This class doesn't |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 - (BOOL)hasTabStrip; | 147 - (BOOL)hasTabStrip; |
| 148 | 148 |
| 149 // Gets whether a particular tab is draggable between windows. | 149 // Gets whether a particular tab is draggable between windows. |
| 150 - (BOOL)isTabDraggable:(NSView*)tabView; | 150 - (BOOL)isTabDraggable:(NSView*)tabView; |
| 151 | 151 |
| 152 // Tell the window that it needs to call performClose: as soon as the current | 152 // Tell the window that it needs to call performClose: as soon as the current |
| 153 // drag is complete. This prevents a window (and its overlay) from going away | 153 // drag is complete. This prevents a window (and its overlay) from going away |
| 154 // during a drag. | 154 // during a drag. |
| 155 - (void)deferPerformClose; | 155 - (void)deferPerformClose; |
| 156 | 156 |
| 157 // The tab strip should always be inserted directly above the content view. | |
| 158 - (void)insertTabStripView:(NSView*)tabStripView intoWindow:(NSWindow*)window; | |
| 159 | |
| 160 // The tab strip background view should always be inserted as the back-most | |
| 161 // subview of the root view. It cannot be a subview of the contentView, as that | |
| 162 // would cause it to become layer backed, which would cause it to draw on top | |
| 163 // of non-layer backed content like the window controls. | |
| 164 - (void)insertTabStripBackgroundViewIntoWindow:(NSWindow*)window; | |
| 165 | |
| 166 @end | 157 @end |
| 167 | 158 |
| 168 @interface TabWindowController(ProtectedMethods) | 159 @interface TabWindowController(ProtectedMethods) |
| 169 // Tells the tab strip to forget about this tab in preparation for it being | 160 // Tells the tab strip to forget about this tab in preparation for it being |
| 170 // put into a different tab strip, such as during a drop on another window. | 161 // put into a different tab strip, such as during a drop on another window. |
| 171 - (void)detachTabView:(NSView*)view; | 162 - (void)detachTabView:(NSView*)view; |
| 172 | 163 |
| 173 // Called when the size of the window content area has changed. Override to | 164 // Called when the size of the window content area has changed. Override to |
| 174 // position specific views. Base class implementation does nothing. | 165 // position specific views. Base class implementation does nothing. |
| 175 - (void)layoutSubviews; | 166 - (void)layoutSubviews; |
| 176 @end | 167 @end |
| 177 | 168 |
| 178 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 169 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
| OLD | NEW |