Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H | |
| 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H | |
| 7 | |
| 8 #import <Cocoa/Cocoa.h> | |
| 9 | |
| 10 @class BrowserWindowController; | |
| 11 | |
| 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 | |
| 14 // the top of the screen. | |
| 15 @interface ImmersiveFullscreenController : NSObject | |
| 16 | |
| 17 // Designated initializer. | |
| 18 - (id)initWithBrowserController:(BrowserWindowController*)bwc; | |
|
Robert Sesek
2016/11/09 19:23:03
instancetype
spqchan
2016/11/09 22:34:40
Done.
| |
| 19 | |
| 20 // Updates the menubar and dock visibility according the state of the | |
| 21 // immersive fullscreen. | |
| 22 - (void)updateMenuBarAndDockVisibility; | |
| 23 | |
| 24 // Returns YES if the menubar should be shown in immersive fullscreen for the | |
| 25 // screen that contains the window. | |
| 26 - (BOOL)shouldShowMenubar; | |
| 27 | |
| 28 @end | |
| 29 | |
| 30 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_IMMERSIVE_FULLSCREEN_CONTROLLER_H | |
| OLD | NEW |