| 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_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
| 9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
| 10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // Methods having to do with fullscreen and presentation mode. | 529 // Methods having to do with fullscreen and presentation mode. |
| 530 @interface BrowserWindowController(Fullscreen) | 530 @interface BrowserWindowController(Fullscreen) |
| 531 | 531 |
| 532 // Toggles fullscreen mode. Meant to be called by Lion windows when they enter | 532 // Toggles fullscreen mode. Meant to be called by Lion windows when they enter |
| 533 // or exit Lion fullscreen mode. Must not be called on Snow Leopard or earlier. | 533 // or exit Lion fullscreen mode. Must not be called on Snow Leopard or earlier. |
| 534 - (void)handleLionToggleFullscreen; | 534 - (void)handleLionToggleFullscreen; |
| 535 | 535 |
| 536 // Enters Browser AppKit Fullscreen. | 536 // Enters Browser AppKit Fullscreen. |
| 537 - (void)enterBrowserFullscreen; | 537 - (void)enterBrowserFullscreen; |
| 538 | 538 |
| 539 // Adds or removes the tab strip and toolbar from the current window. The | 539 // Updates the UI for tab fullscreen by adding or removing the tab strip and |
| 540 // window must be in immersive or AppKit Fullscreen. | 540 // toolbar from the current window. The window must already be in fullscreen. |
| 541 - (void)updateFullscreenWithToolbar:(BOOL)withToolbar; | 541 - (void)updateUIForTabFullscreen:(BOOL)isTabFullscreen; |
| 542 | 542 |
| 543 // Exits extension fullscreen if we're currently in the mode. Returns YES | 543 // Exits extension fullscreen if we're currently in the mode. Returns YES |
| 544 // if we exited fullscreen. | 544 // if we exited fullscreen. |
| 545 - (BOOL)exitExtensionFullscreenIfPossible; | 545 - (BOOL)exitExtensionFullscreenIfPossible; |
| 546 | 546 |
| 547 // Updates the contents of the fullscreen exit bubble with |url| and | 547 // Updates the contents of the fullscreen exit bubble with |url| and |
| 548 // |bubbleType|. | 548 // |bubbleType|. |
| 549 - (void)updateFullscreenExitBubble; | 549 - (void)updateFullscreenExitBubble; |
| 550 | 550 |
| 551 // Set the toolbar's visibility in fullscreen mode. | 551 // Set the toolbar's visibility in fullscreen mode. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 // Returns the active tab contents controller's |blockFullscreenResize_| flag. | 647 // Returns the active tab contents controller's |blockFullscreenResize_| flag. |
| 648 - (BOOL)isActiveTabContentsControllerResizeBlocked; | 648 - (BOOL)isActiveTabContentsControllerResizeBlocked; |
| 649 | 649 |
| 650 // Returns the presentation mode controller. | 650 // Returns the presentation mode controller. |
| 651 - (PresentationModeController*)presentationModeController; | 651 - (PresentationModeController*)presentationModeController; |
| 652 | 652 |
| 653 @end // @interface BrowserWindowController (TestingAPI) | 653 @end // @interface BrowserWindowController (TestingAPI) |
| 654 | 654 |
| 655 | 655 |
| 656 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 656 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |