OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H | 5 #ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H | 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 @class BrowserWindowController; | 10 @class BrowserWindowController; |
11 | 11 |
12 // This class manages the menubar and dock visibility for Immersive Fullscreen. | 12 // This class manages the menubar and dock visibility for Immersive Fullscreen. |
13 // It uses a tracking area to show/hide the menubar if the user interacts with | 13 // It uses a tracking area to show/hide the menubar if the user interacts with |
14 // the top of the screen. | 14 // the top of the screen. |
15 @interface ImmersiveFullscreenController : NSObject | 15 @interface ImmersiveFullscreenController : NSObject |
16 | 16 |
17 // Designated initializer. | 17 // Designated initializer. |
18 - (instancetype)initWithBrowserController:(BrowserWindowController*)bwc; | 18 - (instancetype)initWithBrowserController:(BrowserWindowController*)bwc; |
19 | 19 |
20 // Updates the menubar and dock visibility according the state of the | 20 // Updates the menubar and dock visibility according the state of the |
21 // immersive fullscreen. | 21 // immersive fullscreen. |
22 - (void)updateMenuBarAndDockVisibility; | 22 - (void)updateMenuBarAndDockVisibility; |
23 | 23 |
24 // Returns YES if the menubar should be shown in immersive fullscreen for the | 24 // Returns YES if the menubar should be shown in immersive fullscreen for the |
25 // screen that contains the window. | 25 // screen that contains the window. |
26 - (BOOL)shouldShowMenubar; | 26 - (BOOL)shouldShowMenubar; |
27 | 27 |
28 @end | 28 @end |
29 | 29 |
30 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H | 30 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ |
OLD | NEW |