| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Repositions the window's subviews. From the top down: toolbar, normal | 37 // Repositions the window's subviews. From the top down: toolbar, normal |
| 38 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), | 38 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), |
| 39 // content area, download shelf (if any). | 39 // content area, download shelf (if any). |
| 40 - (void)layoutSubviews; | 40 - (void)layoutSubviews; |
| 41 | 41 |
| 42 // Find the total height of the floating bar (in presentation mode). Safe to | 42 // Find the total height of the floating bar (in presentation mode). Safe to |
| 43 // call even when not in presentation mode. | 43 // call even when not in presentation mode. |
| 44 - (CGFloat)floatingBarHeight; | 44 - (CGFloat)floatingBarHeight; |
| 45 | 45 |
| 46 // Shows the informational "how to exit fullscreen" bubble. |
| 47 - (void)showFullscreenExitBubbleIfNecessary; |
| 48 - (void)destroyFullscreenExitBubbleIfNecessary; |
| 49 |
| 46 // Lays out the presentation mode toggle button at the top right corner of the | 50 // Lays out the presentation mode toggle button at the top right corner of the |
| 47 // overlay. Creates the button if needed, and removes it if it is not needed. | 51 // overlay. Creates the button if needed, and removes it if it is not needed. |
| 48 // This method is safe to call on all OS versions. | 52 // This method is safe to call on all OS versions. |
| 49 - (void)layoutPresentationModeToggleAtOverlayMaxX:(CGFloat)maxX | 53 - (void)layoutPresentationModeToggleAtOverlayMaxX:(CGFloat)maxX |
| 50 overlayMaxY:(CGFloat)maxY; | 54 overlayMaxY:(CGFloat)maxY; |
| 51 | 55 |
| 52 // Lays out the tab strip at the given maximum y-coordinate, with the given | 56 // Lays out the tab strip at the given maximum y-coordinate, with the given |
| 53 // width, possibly for fullscreen mode; returns the new maximum y (below the | 57 // width, possibly for fullscreen mode; returns the new maximum y (below the |
| 54 // tab strip). This is safe to call even when there is no tab strip. | 58 // tab strip). This is safe to call even when there is no tab strip. |
| 55 - (CGFloat)layoutTabStripAtMaxY:(CGFloat)maxY | 59 - (CGFloat)layoutTabStripAtMaxY:(CGFloat)maxY |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 162 |
| 159 // Allows/prevents bar visibility locks and releases from updating the visual | 163 // Allows/prevents bar visibility locks and releases from updating the visual |
| 160 // state. Enabling makes changes instantaneously; disabling cancels any | 164 // state. Enabling makes changes instantaneously; disabling cancels any |
| 161 // timers/animation. | 165 // timers/animation. |
| 162 - (void)enableBarVisibilityUpdates; | 166 - (void)enableBarVisibilityUpdates; |
| 163 - (void)disableBarVisibilityUpdates; | 167 - (void)disableBarVisibilityUpdates; |
| 164 | 168 |
| 165 @end // @interface BrowserWindowController(Private) | 169 @end // @interface BrowserWindowController(Private) |
| 166 | 170 |
| 167 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 171 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |