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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller_private.h

Issue 2459653005: [Mac] Refactor the Fullscreen Toolbar Visibility Locks (Closed)
Patch Set: Fix for rsesek Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
7 7
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h"
10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" 10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // methods are internal implementations of |-setFullscreen:|. 80 // methods are internal implementations of |-setFullscreen:|.
81 - (void)enterImmersiveFullscreen; 81 - (void)enterImmersiveFullscreen;
82 - (void)exitImmersiveFullscreen; 82 - (void)exitImmersiveFullscreen;
83 83
84 // Register or deregister for content view resize notifications. These 84 // Register or deregister for content view resize notifications. These
85 // notifications are used while transitioning into fullscreen mode using Cocoa's 85 // notifications are used while transitioning into fullscreen mode using Cocoa's
86 // System Fullscreen API. 86 // System Fullscreen API.
87 - (void)registerForContentViewResizeNotifications; 87 - (void)registerForContentViewResizeNotifications;
88 - (void)deregisterForContentViewResizeNotifications; 88 - (void)deregisterForContentViewResizeNotifications;
89 89
90 // Allows/prevents bar visibility locks and releases from updating the visual
91 // state. Enabling makes changes instantaneously; disabling cancels any
92 // timers/animation.
93 - (void)enableBarVisibilityUpdates;
94 - (void)disableBarVisibilityUpdates;
95
96 // If there are no visibility locks and bar visibity updates are enabled, hides
97 // the bar with |animation|. Otherwise, does nothing.
98 - (void)hideOverlayIfPossibleWithAnimation:(BOOL)animation;
99
100 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. 90 // The opacity for the toolbar divider; 0 means that it shouldn't be shown.
101 - (CGFloat)toolbarDividerOpacity; 91 - (CGFloat)toolbarDividerOpacity;
102 92
103 // Update visibility of the infobar tip, depending on the state of the window. 93 // Update visibility of the infobar tip, depending on the state of the window.
104 - (void)updateInfoBarTipVisibility; 94 - (void)updateInfoBarTipVisibility;
105 95
106 // The min Y of the bubble point in the coordinate space of the toolbar. 96 // The min Y of the bubble point in the coordinate space of the toolbar.
107 - (NSInteger)pageInfoBubblePointY; 97 - (NSInteger)pageInfoBubblePointY;
108 98
109 // Allows the omnibox to slide. Also prepares UI for several fullscreen modes. 99 // Allows the omnibox to slide. Also prepares UI for several fullscreen modes.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Adjusts the UI and destroys the exit bubble when we are exiting fullscreen. 170 // Adjusts the UI and destroys the exit bubble when we are exiting fullscreen.
181 - (void)adjustUIForExitingFullscreen; 171 - (void)adjustUIForExitingFullscreen;
182 172
183 // Determines the appropriate sliding fullscreen style and adjusts the UI to 173 // Determines the appropriate sliding fullscreen style and adjusts the UI to
184 // it when we are entering fullscreen. 174 // it when we are entering fullscreen.
185 - (void)adjustUIForEnteringFullscreen; 175 - (void)adjustUIForEnteringFullscreen;
186 176
187 // Returns YES if the fullscreen is for tab content or an extension. 177 // Returns YES if the fullscreen is for tab content or an extension.
188 - (BOOL)isFullscreenForTabContentOrExtension; 178 - (BOOL)isFullscreenForTabContentOrExtension;
189 179
180 // Accessor for the controller managing the fullscreen toolbar visibility
181 // locks.
182 - (FullscreenToolbarVisibilityLockController*)
183 fullscreenToolbarVisibilityLockController;
184
190 @end // @interface BrowserWindowController(Private) 185 @end // @interface BrowserWindowController(Private)
191 186
192 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 187 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698