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

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: Rebase and merge code 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 3ba66c21e79a9acb238460549d094fe3d89130f5..d79d4f914b9a223168136a68b920736ff1d2b16c 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller.h
@@ -158,6 +158,9 @@ class Command;
// return nil.
BOOL isUsingCustomAnimation_;
+ // 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.
@@ -524,6 +527,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;
@@ -550,6 +558,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.
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_command_handler.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698