| 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 namespace browser_window_controller { | 10 namespace browser_window_controller { |
| 11 | 11 |
| 12 enum InstantUIState { | |
| 13 kInstantUINone, | |
| 14 // Instant suggestions are displayed in a overlay overlapping the tab | |
| 15 // contents. | |
| 16 kInstantUIOverlay, | |
| 17 // Instant suggestions are displayed in the main tab contents. | |
| 18 kInstantUIFullPageResults, | |
| 19 }; | |
| 20 | |
| 21 enum CoreAnimationStatus { | 12 enum CoreAnimationStatus { |
| 22 kCoreAnimationDisabled, | 13 kCoreAnimationDisabled, |
| 23 kCoreAnimationEnabledLazy, | 14 kCoreAnimationEnabledLazy, |
| 24 kCoreAnimationEnabledAlways, | 15 kCoreAnimationEnabledAlways, |
| 25 }; | 16 }; |
| 26 | 17 |
| 27 } // namespace browser_window_controller | 18 } // namespace browser_window_controller |
| 28 | 19 |
| 29 // Private methods for the |BrowserWindowController|. This category should | 20 // Private methods for the |BrowserWindowController|. This category should |
| 30 // contain the private methods used by different parts of the BWC; private | 21 // contain the private methods used by different parts of the BWC; private |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 146 |
| 156 // Allows/prevents bar visibility locks and releases from updating the visual | 147 // Allows/prevents bar visibility locks and releases from updating the visual |
| 157 // state. Enabling makes changes instantaneously; disabling cancels any | 148 // state. Enabling makes changes instantaneously; disabling cancels any |
| 158 // timers/animation. | 149 // timers/animation. |
| 159 - (void)enableBarVisibilityUpdates; | 150 - (void)enableBarVisibilityUpdates; |
| 160 - (void)disableBarVisibilityUpdates; | 151 - (void)disableBarVisibilityUpdates; |
| 161 | 152 |
| 162 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. | 153 // The opacity for the toolbar divider; 0 means that it shouldn't be shown. |
| 163 - (CGFloat)toolbarDividerOpacity; | 154 - (CGFloat)toolbarDividerOpacity; |
| 164 | 155 |
| 165 // This is used to check if either the instant overlay or full page instant | |
| 166 // search results are currently being displayed. | |
| 167 - (browser_window_controller::InstantUIState)currentInstantUIState; | |
| 168 | |
| 169 // Updates the content offets of the tab strip controller and the overlayable | |
| 170 // contents controller. This is used to adjust the overlap between those views | |
| 171 // and the bookmark bar. | |
| 172 - (void)updateContentOffsets; | |
| 173 | |
| 174 // Ensures the z-order of subviews is correct. | 156 // Ensures the z-order of subviews is correct. |
| 175 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; | 157 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; |
| 176 | 158 |
| 177 - (void)updateAllowOverlappingViews:(BOOL)inPresentationMode; | 159 - (void)updateAllowOverlappingViews:(BOOL)inPresentationMode; |
| 178 | 160 |
| 179 // Update visibility of the infobar tip, depending on the state of the window. | 161 // Update visibility of the infobar tip, depending on the state of the window. |
| 180 - (void)updateInfoBarTipVisibility; | 162 - (void)updateInfoBarTipVisibility; |
| 181 | 163 |
| 182 // Checks if core animation should be enabled or not. | 164 // Checks if core animation should be enabled or not. |
| 183 - (browser_window_controller::CoreAnimationStatus)coreAnimationStatus; | 165 - (browser_window_controller::CoreAnimationStatus)coreAnimationStatus; |
| 184 | 166 |
| 185 @end // @interface BrowserWindowController(Private) | 167 @end // @interface BrowserWindowController(Private) |
| 186 | 168 |
| 187 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 169 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |