OLD | NEW |
---|---|
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 | 9 |
10 // Private methods for the |BrowserWindowController|. This category should | 10 // Private methods for the |BrowserWindowController|. This category should |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; | 97 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; |
98 | 98 |
99 // Moves views between windows in preparation for fullscreen mode when not using | 99 // Moves views between windows in preparation for fullscreen mode when not using |
100 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window | 100 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window |
101 // for fullscreen mode, so there is no need to move views around.) This method | 101 // for fullscreen mode, so there is no need to move views around.) This method |
102 // does not position views; callers must also call |-layoutSubviews:|. | 102 // does not position views; callers must also call |-layoutSubviews:|. |
103 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen | 103 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen |
104 regularWindow:(NSWindow*)regularWindow | 104 regularWindow:(NSWindow*)regularWindow |
105 fullscreenWindow:(NSWindow*)fullscreenWindow; | 105 fullscreenWindow:(NSWindow*)fullscreenWindow; |
106 | 106 |
107 // Called when a permission bubble closes. Needed to changes fullscreen mode to | |
108 // allow the floating bar to be hidden once there is no permission bubble | |
Robert Sesek
2014/07/14 20:22:31
This sentence is awkward to read.
leng
2014/07/14 21:28:32
Edited; hopefully better.
Robert Sesek
2014/07/15 16:38:16
Yes, much.
| |
109 // requiring the bar to remain visible. | |
110 - (void)permissionBubbleWindowWillClose:(NSNotification*)notification; | |
111 | |
107 // Sets presentation mode, creating the PresentationModeController if needed and | 112 // Sets presentation mode, creating the PresentationModeController if needed and |
108 // forcing a relayout. If |forceDropdown| is YES, this method will always | 113 // forcing a relayout. If |forceDropdown| is YES, this method will always |
109 // initially show the floating bar when entering presentation mode, even if the | 114 // initially show the floating bar when entering presentation mode, even if the |
110 // floating bar does not have focus. This method is safe to call on all OS | 115 // floating bar does not have focus. This method is safe to call on all OS |
111 // versions. | 116 // versions. |
112 - (void)setPresentationModeInternal:(BOOL)presentationMode | 117 - (void)setPresentationModeInternal:(BOOL)presentationMode |
113 forceDropdown:(BOOL)forceDropdown; | 118 forceDropdown:(BOOL)forceDropdown; |
114 | 119 |
115 // Enter or exit fullscreen without using Cocoa's System Fullscreen API. These | 120 // Enter or exit fullscreen without using Cocoa's System Fullscreen API. These |
116 // methods are internal implementations of |-setFullscreen:|. | 121 // methods are internal implementations of |-setFullscreen:|. |
117 - (void)enterImmersiveFullscreen; | 122 - (void)enterImmersiveFullscreen; |
118 - (void)exitImmersiveFullscreen; | 123 - (void)exitImmersiveFullscreen; |
119 | 124 |
120 // Register or deregister for content view resize notifications. These | 125 // Register or deregister for content view resize notifications. These |
121 // notifications are used while transitioning into fullscreen mode using Cocoa's | 126 // notifications are used while transitioning into fullscreen mode using Cocoa's |
122 // System Fullscreen API. | 127 // System Fullscreen API. |
123 - (void)registerForContentViewResizeNotifications; | 128 - (void)registerForContentViewResizeNotifications; |
124 - (void)deregisterForContentViewResizeNotifications; | 129 - (void)deregisterForContentViewResizeNotifications; |
125 | 130 |
126 // Adjust the UI when entering or leaving presentation mode. This method is | 131 // Adjust the UI when entering or leaving presentation mode. This method is |
127 // safe to call on all OS versions. | 132 // safe to call on all OS versions. |
128 - (void)adjustUIForPresentationMode:(BOOL)fullscreen; | 133 - (void)adjustUIForPresentationMode:(BOOL)fullscreen; |
129 | 134 |
130 // Allows/prevents bar visibility locks and releases from updating the visual | 135 // Allows/prevents bar visibility locks and releases from updating the visual |
131 // state. Enabling makes changes instantaneously; disabling cancels any | 136 // state. Enabling makes changes instantaneously; disabling cancels any |
132 // timers/animation. | 137 // timers/animation. |
133 - (void)enableBarVisibilityUpdates; | 138 - (void)enableBarVisibilityUpdates; |
134 - (void)disableBarVisibilityUpdates; | 139 - (void)disableBarVisibilityUpdates; |
135 | 140 |
141 // If there are no visibility locks and bar visibity updates are enabled, hides | |
142 // the bar with |animation| and |delay|. Otherwise, does nothing. | |
143 - (void)hideOverlayIfPossibleWithAnimation:(BOOL)animation delay:(BOOL)delay; | |
144 | |
136 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. | 145 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. |
137 - (CGFloat)toolbarDividerOpacity; | 146 - (CGFloat)toolbarDividerOpacity; |
138 | 147 |
139 // Ensures the z-order of subviews is correct. | 148 // Ensures the z-order of subviews is correct. |
140 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; | 149 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; |
141 | 150 |
142 - (void)updateAllowOverlappingViews:(BOOL)inPresentationMode; | 151 - (void)updateAllowOverlappingViews:(BOOL)inPresentationMode; |
143 | 152 |
144 // Update visibility of the infobar tip, depending on the state of the window. | 153 // Update visibility of the infobar tip, depending on the state of the window. |
145 - (void)updateInfoBarTipVisibility; | 154 - (void)updateInfoBarTipVisibility; |
146 | 155 |
147 @end // @interface BrowserWindowController(Private) | 156 @end // @interface BrowserWindowController(Private) |
148 | 157 |
149 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 158 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
OLD | NEW |