Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1120)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 2089323002: Refactored FullscreenController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment and nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698