| Index: chrome/browser/cocoa/fullscreen_controller.h
|
| ===================================================================
|
| --- chrome/browser/cocoa/fullscreen_controller.h (revision 58173)
|
| +++ chrome/browser/cocoa/fullscreen_controller.h (working copy)
|
| @@ -14,6 +14,8 @@
|
|
|
| @class BrowserWindowController;
|
| @class DropdownAnimation;
|
| +@class FloatingBarBackingView;
|
| +@class FullscreenWindow;
|
|
|
| // Provides a controller to manage fullscreen mode for a single browser window.
|
| // This class handles running animations, showing and hiding the floating
|
| @@ -29,6 +31,13 @@
|
| // step than it is to manage a constantly-changing tracking area.
|
| @interface FullscreenController : NSObject<NSAnimationDelegate> {
|
| @private
|
| + scoped_nsobject<FullscreenWindow> fullscreenWindow_;
|
| +
|
| + // Lazily created view which draws the background for the floating set of bars
|
| + // in fullscreen mode (for window types having a floating bar; it remains nil
|
| + // for those which don't).
|
| + scoped_nsobject<NSView> floatingBarBackingView_;
|
| +
|
| // Our parent controller.
|
| BrowserWindowController* browserController_; // weak
|
|
|
| @@ -39,6 +48,9 @@
|
| // Whether or not we are in fullscreen mode.
|
| BOOL isFullscreen_;
|
|
|
| + // The proportion of the floating bar which is shown.
|
| + CGFloat floatingBarShownFraction_;
|
| +
|
| // The tracking area associated with the floating dropdown bar. This tracking
|
| // area is attached to |contentView_|, because when the dropdown is completely
|
| // hidden, we still need to keep a 1px tall tracking area visible. Attaching
|
| @@ -88,6 +100,11 @@
|
| showDropdown:(BOOL)showDropdown;
|
| - (void)exitFullscreen;
|
|
|
| +// Returns the FullscreenWindow associated with this controller.
|
| +- (FullscreenWindow*)window;
|
| +
|
| +- (NSView*)floatingBarBackingView;
|
| +
|
| // Returns the amount by which the floating bar should be offset downwards (to
|
| // avoid the menu) and by which the overlay view should be enlarged vertically.
|
| // Generally, this is > 0 when the fullscreen window is on the primary screen
|
|
|