Index: chrome/browser/cocoa/browser_window_controller.h |
=================================================================== |
--- chrome/browser/cocoa/browser_window_controller.h (revision 19517) |
+++ chrome/browser/cocoa/browser_window_controller.h (working copy) |
@@ -44,6 +44,7 @@ |
// their destruction sequence. |
scoped_ptr<Browser> browser_; |
scoped_nsobject<NSWindow> window_; |
+ scoped_nsobject<NSWindow> fullscreen_window_; |
scoped_ptr<TabStripModelObserverBridge> tabObserver_; |
scoped_ptr<BrowserWindowCocoa> windowShim_; |
scoped_nsobject<ToolbarController> toolbarController_; |
@@ -53,6 +54,7 @@ |
scoped_ptr<StatusBubble> statusBubble_; |
scoped_nsobject<DownloadShelfController> downloadShelfController_; |
BOOL ownsBrowser_; // Only ever NO when testing |
+ BOOL fullscreen_; |
} |
// Load the browser window nib and do any Cocoa-specific initialization. |
@@ -109,6 +111,12 @@ |
// BrowserWindowController. |
- (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; |
+// Enters (or exits) fullscreen mode. |
+- (void)setFullscreen:(BOOL)fullscreen; |
+ |
+// Returns fullscreen state. |
+- (BOOL)isFullscreen; |
+ |
@end |
@@ -117,6 +125,9 @@ |
// Allows us to initWithBrowser withOUT taking ownership of the browser. |
- (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; |
+// Return an autoreleased NSWindow suitable for fullscreen use. |
+- (NSWindow*)fullscreenWindow; |
+ |
@end // BrowserWindowController(TestingAPI) |
#endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |