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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.h

Issue 493143004: mac: Major fullscreen refactor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to rsesek comments. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller_private.h
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.h b/chrome/browser/ui/cocoa/browser_window_controller_private.h
index 77ceeb9c1192f7acd520f48f97d41d5b3293a308..c6a17fe3d8a7d5584019e1a35b24376bd38d5710 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.h
@@ -112,14 +112,6 @@
// hidden while a permissions bubble is visible.)
- (void)permissionBubbleWindowWillClose:(NSNotification*)notification;
-// Sets presentation mode, creating the PresentationModeController if needed and
-// forcing a relayout. If |forceDropdown| is YES, this method will always
-// initially show the floating bar when entering presentation mode, even if the
-// floating bar does not have focus. This method is safe to call on all OS
-// versions.
-- (void)setPresentationModeInternal:(BOOL)presentationMode
- forceDropdown:(BOOL)forceDropdown;
-
// Enter or exit fullscreen without using Cocoa's System Fullscreen API. These
// methods are internal implementations of |-setFullscreen:|.
- (void)enterImmersiveFullscreen;
@@ -131,10 +123,6 @@
- (void)registerForContentViewResizeNotifications;
- (void)deregisterForContentViewResizeNotifications;
-// Adjust the UI when entering or leaving presentation mode. This method is
-// safe to call on all OS versions.
-- (void)adjustUIForPresentationMode:(BOOL)fullscreen;
-
// Allows/prevents bar visibility locks and releases from updating the visual
// state. Enabling makes changes instantaneously; disabling cancels any
// timers/animation.
@@ -154,6 +142,24 @@
// Update visibility of the infobar tip, depending on the state of the window.
- (void)updateInfoBarTipVisibility;
+// Configures the presentationModeController_ right after it is constructed.
+- (void)configurePresentationModeController;
+
+// Allows the omnibox to slide. Also prepares UI for several fullscreen modes.
+// This method gets called when entering AppKit fullscren, or when entering
+// Immersive fullscreen. Expects fullscreenStyle_ to be set.
+- (void)adjustUIForSlidingFullscreenStyle:(fullscreen_mac::SlidingStyle)style;
+
+// This method gets called when exiting AppKit fullscreen, or when exiting
+// Immersive fullscreen. It performs some common UI changes, and stops the
+// omnibox from sliding.
+- (void)adjustUIForExitingFullscreenAndStopOmniboxSliding;
+
+// Toggles the AppKit Fullscreen API. By default, doing so enters Canonical
+// Fullscreen.
+- (void)enterAppKitFullscreen;
+- (void)exitAppKitFullscreen;
+
@end // @interface BrowserWindowController(Private)
#endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_

Powered by Google App Engine
This is Rietveld 408576698