| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // if it does, NO otherwise). The default implementation returns YES. | 156 // if it does, NO otherwise). The default implementation returns YES. |
| 157 - (BOOL)hasTabStrip; | 157 - (BOOL)hasTabStrip; |
| 158 | 158 |
| 159 // Gets whether a particular tab is draggable between windows. | 159 // Gets whether a particular tab is draggable between windows. |
| 160 - (BOOL)isTabDraggable:(NSView*)tabView; | 160 - (BOOL)isTabDraggable:(NSView*)tabView; |
| 161 | 161 |
| 162 // In any fullscreen mode, the y offset to use for the content at the top of | 162 // In any fullscreen mode, the y offset to use for the content at the top of |
| 163 // the screen (tab strip, omnibox, bookmark bar, etc). Ranges from 0 to -22. | 163 // the screen (tab strip, omnibox, bookmark bar, etc). Ranges from 0 to -22. |
| 164 - (CGFloat)menubarOffset; | 164 - (CGFloat)menubarOffset; |
| 165 | 165 |
| 166 // The height of the menubar. |
| 167 - (CGFloat)menubarHeight; |
| 168 |
| 166 // Returns the view of the avatar button. | 169 // Returns the view of the avatar button. |
| 167 - (NSView*)avatarView; | 170 - (NSView*)avatarView; |
| 168 | 171 |
| 169 // Tell the window that it needs to call performClose: as soon as the current | 172 // Tell the window that it needs to call performClose: as soon as the current |
| 170 // drag is complete. This prevents a window (and its overlay) from going away | 173 // drag is complete. This prevents a window (and its overlay) from going away |
| 171 // during a drag. | 174 // during a drag. |
| 172 - (void)deferPerformClose; | 175 - (void)deferPerformClose; |
| 173 | 176 |
| 174 @end | 177 @end |
| 175 | 178 |
| 176 @interface TabWindowController(ProtectedMethods) | 179 @interface TabWindowController(ProtectedMethods) |
| 177 // Tells the tab strip to forget about this tab in preparation for it being | 180 // Tells the tab strip to forget about this tab in preparation for it being |
| 178 // put into a different tab strip, such as during a drop on another window. | 181 // put into a different tab strip, such as during a drop on another window. |
| 179 - (void)detachTabView:(NSView*)view; | 182 - (void)detachTabView:(NSView*)view; |
| 180 | 183 |
| 181 // Called when the size of the window content area has changed. Override to | 184 // Called when the size of the window content area has changed. Override to |
| 182 // position specific views. Base class implementation does nothing. | 185 // position specific views. Base class implementation does nothing. |
| 183 - (void)layoutSubviews; | 186 - (void)layoutSubviews; |
| 184 @end | 187 @end |
| 185 | 188 |
| 186 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 189 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
| OLD | NEW |