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 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" | 9 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 - (void)enableBarVisibilityUpdates; | 130 - (void)enableBarVisibilityUpdates; |
131 - (void)disableBarVisibilityUpdates; | 131 - (void)disableBarVisibilityUpdates; |
132 | 132 |
133 // If there are no visibility locks and bar visibity updates are enabled, hides | 133 // If there are no visibility locks and bar visibity updates are enabled, hides |
134 // the bar with |animation| and |delay|. Otherwise, does nothing. | 134 // the bar with |animation| and |delay|. Otherwise, does nothing. |
135 - (void)hideOverlayIfPossibleWithAnimation:(BOOL)animation delay:(BOOL)delay; | 135 - (void)hideOverlayIfPossibleWithAnimation:(BOOL)animation delay:(BOOL)delay; |
136 | 136 |
137 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. | 137 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. |
138 - (CGFloat)toolbarDividerOpacity; | 138 - (CGFloat)toolbarDividerOpacity; |
139 | 139 |
140 // Removes the view from its superview, then adds it back in the same place. | |
141 - (void)reAddViewToSuperview:(NSView*)view; | |
Avi (use Gerrit)
2014/09/11 18:26:49
First, this comment is not helpful; it merely rest
erikchen
2014/09/12 00:32:51
I updated the comment and the name of the method a
| |
142 | |
140 // Ensures the z-order of subviews is correct. | 143 // Ensures the z-order of subviews is correct. |
141 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; | 144 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; |
142 | 145 |
143 // Update visibility of the infobar tip, depending on the state of the window. | 146 // Update visibility of the infobar tip, depending on the state of the window. |
144 - (void)updateInfoBarTipVisibility; | 147 - (void)updateInfoBarTipVisibility; |
145 | 148 |
146 // Returns the max top arrow height for infobar. | 149 // Returns the max top arrow height for infobar. |
147 - (NSInteger)infoBarMaxTopArrowHeight; | 150 - (NSInteger)infoBarMaxTopArrowHeight; |
148 | 151 |
149 // Configures the presentationModeController_ right after it is constructed. | 152 // Configures the presentationModeController_ right after it is constructed. |
(...skipping 15 matching lines...) Expand all Loading... | |
165 (fullscreen_mac::SlidingStyle)style; | 168 (fullscreen_mac::SlidingStyle)style; |
166 | 169 |
167 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical | 170 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical |
168 // Fullscreen. | 171 // Fullscreen. |
169 - (void)enterAppKitFullscreen; | 172 - (void)enterAppKitFullscreen; |
170 - (void)exitAppKitFullscreen; | 173 - (void)exitAppKitFullscreen; |
171 | 174 |
172 @end // @interface BrowserWindowController(Private) | 175 @end // @interface BrowserWindowController(Private) |
173 | 176 |
174 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 177 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
OLD | NEW |