| 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 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // Is the current page one for which the bookmark should be shown detached *if* | 98 // Is the current page one for which the bookmark should be shown detached *if* |
| 99 // the normal bookmark bar is not shown? | 99 // the normal bookmark bar is not shown? |
| 100 - (BOOL)shouldShowDetachedBookmarkBar; | 100 - (BOOL)shouldShowDetachedBookmarkBar; |
| 101 | 101 |
| 102 // Sets the toolbar's height to a value appropriate for the given compression. | 102 // Sets the toolbar's height to a value appropriate for the given compression. |
| 103 // Also adjusts the bookmark bar's height by the opposite amount in order to | 103 // Also adjusts the bookmark bar's height by the opposite amount in order to |
| 104 // keep the total height of the two views constant. | 104 // keep the total height of the two views constant. |
| 105 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; | 105 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; |
| 106 | 106 |
| 107 // Gets and sets whether to default to presentation mode when entering | |
| 108 // fullscreen on Lion or later. On Leopard and Snow Leopard, this preference is | |
| 109 // ignored (fullscreen mode always turns presentation mode on). This method is | |
| 110 // safe to call on all OS versions. | |
| 111 - (BOOL)shouldUsePresentationModeWhenEnteringFullscreen; | |
| 112 - (void)setShouldUsePresentationModeWhenEnteringFullscreen:(BOOL)flag; | |
| 113 | |
| 114 // Whether to show the presentation mode toggle button in the UI. Returns YES | 107 // Whether to show the presentation mode toggle button in the UI. Returns YES |
| 115 // if in fullscreen mode on Lion or later. This method is safe to call on all | 108 // if in fullscreen mode on Lion or later. This method is safe to call on all |
| 116 // OS versions. | 109 // OS versions. |
| 117 - (BOOL)shouldShowPresentationModeToggle; | 110 - (BOOL)shouldShowPresentationModeToggle; |
| 118 | 111 |
| 119 // Moves views between windows in preparation for fullscreen mode on Snow | 112 // Moves views between windows in preparation for fullscreen mode on Snow |
| 120 // Leopard or earlier. (Lion and later reuses the original window for | 113 // Leopard or earlier. (Lion and later reuses the original window for |
| 121 // fullscreen mode, so there is no need to move views around.) This method does | 114 // fullscreen mode, so there is no need to move views around.) This method does |
| 122 // not position views; callers must also call |-layoutSubviews|. This method | 115 // not position views; callers must also call |-layoutSubviews|. This method |
| 123 // must not be called on Lion or later. | 116 // must not be called on Lion or later. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 151 | 144 |
| 152 // Allows/prevents bar visibility locks and releases from updating the visual | 145 // Allows/prevents bar visibility locks and releases from updating the visual |
| 153 // state. Enabling makes changes instantaneously; disabling cancels any | 146 // state. Enabling makes changes instantaneously; disabling cancels any |
| 154 // timers/animation. | 147 // timers/animation. |
| 155 - (void)enableBarVisibilityUpdates; | 148 - (void)enableBarVisibilityUpdates; |
| 156 - (void)disableBarVisibilityUpdates; | 149 - (void)disableBarVisibilityUpdates; |
| 157 | 150 |
| 158 @end // @interface BrowserWindowController(Private) | 151 @end // @interface BrowserWindowController(Private) |
| 159 | 152 |
| 160 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 153 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |