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

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

Issue 1414033009: Implement a Menu Item to Hide the Toolbar in Fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some issues Created 5 years, 1 month 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.h
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.h b/chrome/browser/ui/cocoa/browser_window_controller.h
index e438e18b112f80c718bf4a2c808ba3200aa65bfb..e5269e5ebd45a4a827ca5a59571d10bacacc5e1a 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller.h
@@ -153,6 +153,9 @@ class Command;
// primary screen.
BOOL enteringAppKitFullscreenOnPrimaryScreen_;
+ // True if the toolbar needs to be hidden in fullscreen.
+ BOOL shouldHideFullscreenToolbar_;
+
// The size of the original (non-fullscreen) window. This is saved just
// before entering fullscreen mode and is only valid when |-isFullscreen|
// returns YES.
@@ -519,6 +522,11 @@ class Command;
- (void)updateFullscreenExitBubbleURL:(const GURL&)url
bubbleType:(ExclusiveAccessBubbleType)bubbleType;
+// Toggles and updates the toolbar's visibility in fullscreen mode. This
+// function toggles between the sliding styles: OMNIBOX_TABS_PRESENT and
+// OMNIBOX_TABS_HIDDEN.
+- (void)toggleFullscreenToolbar;
+
// Returns YES if the browser window is in or entering any fullscreen mode.
- (BOOL)isInAnyFullscreenMode;
@@ -545,6 +553,9 @@ class Command;
// Mode.
- (BOOL)inPresentationMode;
+// Whether if the toolbar should be hidden in fullscreen.
+- (BOOL)shouldHideFullscreenToolbar;
+
// Resizes the fullscreen window to fit the screen it's currently on. Called by
// the PresentationModeController when there is a change in monitor placement or
// resolution.

Powered by Google App Engine
This is Rietveld 408576698