| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 - (void)updateFullscreenWithToolbar:(BOOL)withToolbar; | 531 - (void)updateFullscreenWithToolbar:(BOOL)withToolbar; |
| 532 | 532 |
| 533 // Updates the contents of the fullscreen exit bubble with |url| and | 533 // Updates the contents of the fullscreen exit bubble with |url| and |
| 534 // |bubbleType|. | 534 // |bubbleType|. |
| 535 - (void)updateFullscreenExitBubbleURL:(const GURL&)url | 535 - (void)updateFullscreenExitBubbleURL:(const GURL&)url |
| 536 bubbleType:(ExclusiveAccessBubbleType)bubbleType; | 536 bubbleType:(ExclusiveAccessBubbleType)bubbleType; |
| 537 | 537 |
| 538 // Toggles and updates the toolbar's visibility in fullscreen mode. This | 538 // Toggles and updates the toolbar's visibility in fullscreen mode. This |
| 539 // function toggles between the sliding styles: OMNIBOX_TABS_PRESENT and | 539 // function toggles between the sliding styles: OMNIBOX_TABS_PRESENT and |
| 540 // OMNIBOX_TABS_HIDDEN. | 540 // OMNIBOX_TABS_HIDDEN. |
| 541 - (void)toggleFullscreenToolbar; | 541 - (void)setFullscreenToolbarHidden:(BOOL)isHidden; |
| 542 | 542 |
| 543 // Returns YES if the browser window is in or entering any fullscreen mode. | 543 // Returns YES if the browser window is in or entering any fullscreen mode. |
| 544 - (BOOL)isInAnyFullscreenMode; | 544 - (BOOL)isInAnyFullscreenMode; |
| 545 | 545 |
| 546 // Returns YES if the browser window is currently in or entering fullscreen via | 546 // Returns YES if the browser window is currently in or entering fullscreen via |
| 547 // the built-in immersive mechanism. | 547 // the built-in immersive mechanism. |
| 548 - (BOOL)isInImmersiveFullscreen; | 548 - (BOOL)isInImmersiveFullscreen; |
| 549 | 549 |
| 550 // Returns YES if the browser window is currently in or entering fullscreen via | 550 // Returns YES if the browser window is currently in or entering fullscreen via |
| 551 // the AppKit Fullscreen API. | 551 // the AppKit Fullscreen API. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 // Gets the rect, in window base coordinates, that the omnibox popup should be | 637 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 638 // positioned relative to. | 638 // positioned relative to. |
| 639 - (NSRect)omniboxPopupAnchorRect; | 639 - (NSRect)omniboxPopupAnchorRect; |
| 640 | 640 |
| 641 // Returns the flag |blockLayoutSubviews_|. | 641 // Returns the flag |blockLayoutSubviews_|. |
| 642 - (BOOL)isLayoutSubviewsBlocked; | 642 - (BOOL)isLayoutSubviewsBlocked; |
| 643 | 643 |
| 644 // Returns the active tab contents controller's |blockFullscreenResize_| flag. | 644 // Returns the active tab contents controller's |blockFullscreenResize_| flag. |
| 645 - (BOOL)isActiveTabContentsControllerResizeBlocked; | 645 - (BOOL)isActiveTabContentsControllerResizeBlocked; |
| 646 | 646 |
| 647 // Returns the presentation mode controller. |
| 648 - (PresentationModeController*)presentationModeController; |
| 649 |
| 647 @end // @interface BrowserWindowController (TestingAPI) | 650 @end // @interface BrowserWindowController (TestingAPI) |
| 648 | 651 |
| 649 | 652 |
| 650 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 653 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |