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

Unified Diff: chrome/browser/ui/cocoa/fullscreen/immersive_fullscreen_controller.h

Issue 2355413007: [Mac] Refactor the Fullscreen Toolbar (Closed)
Patch Set: Nits and grits Created 4 years, 2 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/fullscreen/immersive_fullscreen_controller.h
diff --git a/chrome/browser/ui/cocoa/fullscreen/immersive_fullscreen_controller.h b/chrome/browser/ui/cocoa/fullscreen/immersive_fullscreen_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..817c853c9383e9fc18a59df1dd2d407cc56bfaed
--- /dev/null
+++ b/chrome/browser/ui/cocoa/fullscreen/immersive_fullscreen_controller.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H
+#define CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H
+
+#import <Cocoa/Cocoa.h>
+
+@class BrowserWindowController;
+class FullscreenToolbarLayoutManager;
+
+// This class manages the menubar and dock visibility for Immersive Fullscreen.
+// It uses a tracking area to determine if the user is interacting with the top
+// of the screen.
+@interface ImmersiveFullscreenController : NSObject
+
+// Designated initializer.
+- (id)initWithBrowserController:(BrowserWindowController*)bwc;
+
+// Updates the menubar and dock visibility according the state of the
+// immersive fullscreen.
+- (void)updateMenuBarAndDockVisibility;
+
+// Returns YES if the menubar should be shown in immersive fullscreen for the
+// screen that contains the window.
+- (BOOL)shouldShowMenubar;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H

Powered by Google App Engine
This is Rietveld 408576698