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

Unified Diff: chrome/browser/cocoa/fullscreen_controller.h

Issue 3136003: [Mac] Refactor the fullscreen code to move logic from BWC into FullscreenCont... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/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
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/cocoa/fullscreen_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698