Chromium Code Reviews| 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..24d24ae5ec643831dde94bfbac7a3d1c9b092c88 |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/fullscreen/immersive_fullscreen_controller.h |
| @@ -0,0 +1,30 @@ |
| +// 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; |
| + |
| +// This class manages the menubar and dock visibility for Immersive Fullscreen. |
| +// It uses a tracking area to show/hide the menubar if the user interacts with |
| +// the top of the screen. |
| +@interface ImmersiveFullscreenController : NSObject |
| + |
| +// Designated initializer. |
| +- (id)initWithBrowserController:(BrowserWindowController*)bwc; |
|
Robert Sesek
2016/11/09 19:23:03
instancetype
spqchan
2016/11/09 22:34:40
Done.
|
| + |
| +// 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 |