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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 166 // The height of the menubar. |
167 - (CGFloat)menubarHeight; | 167 - (CGFloat)menubarHeight; |
168 | 168 |
| 169 // Returns YES if the browser window is in or entering any fullscreen mode. |
| 170 - (BOOL)isInAnyFullscreenMode; |
| 171 |
169 // Returns the view of the avatar button. | 172 // Returns the view of the avatar button. |
170 - (NSView*)avatarView; | 173 - (NSView*)avatarView; |
171 | 174 |
172 // Tell the window that it needs to call performClose: as soon as the current | 175 // Tell the window that it needs to call performClose: as soon as the current |
173 // drag is complete. This prevents a window (and its overlay) from going away | 176 // drag is complete. This prevents a window (and its overlay) from going away |
174 // during a drag. | 177 // during a drag. |
175 - (void)deferPerformClose; | 178 - (void)deferPerformClose; |
176 | 179 |
177 @end | 180 @end |
178 | 181 |
179 @interface TabWindowController(ProtectedMethods) | 182 @interface TabWindowController(ProtectedMethods) |
180 // Tells the tab strip to forget about this tab in preparation for it being | 183 // Tells the tab strip to forget about this tab in preparation for it being |
181 // put into a different tab strip, such as during a drop on another window. | 184 // put into a different tab strip, such as during a drop on another window. |
182 - (void)detachTabView:(NSView*)view; | 185 - (void)detachTabView:(NSView*)view; |
183 | 186 |
184 // Called when the size of the window content area has changed. Override to | 187 // Called when the size of the window content area has changed. Override to |
185 // position specific views. Base class implementation does nothing. | 188 // position specific views. Base class implementation does nothing. |
186 - (void)layoutSubviews; | 189 - (void)layoutSubviews; |
187 @end | 190 @end |
188 | 191 |
189 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 192 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
OLD | NEW |