| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // y-coordinate, with the given width; returns the new minimum y (above the | 85 // y-coordinate, with the given width; returns the new minimum y (above the |
| 86 // download shelf). This is safe to call even if there is no download shelf. | 86 // download shelf). This is safe to call even if there is no download shelf. |
| 87 - (CGFloat)layoutDownloadShelfAtMinX:(CGFloat)minX | 87 - (CGFloat)layoutDownloadShelfAtMinX:(CGFloat)minX |
| 88 minY:(CGFloat)minY | 88 minY:(CGFloat)minY |
| 89 width:(CGFloat)width; | 89 width:(CGFloat)width; |
| 90 | 90 |
| 91 // Lays out the tab content area in the given frame. If the height changes, | 91 // Lays out the tab content area in the given frame. If the height changes, |
| 92 // sends a message to the renderer to resize. | 92 // sends a message to the renderer to resize. |
| 93 - (void)layoutTabContentArea:(NSRect)frame; | 93 - (void)layoutTabContentArea:(NSRect)frame; |
| 94 | 94 |
| 95 // Updates whether the bottom two corners are rounded. | |
| 96 - (void)updateRoundedBottomCorners; | |
| 97 | |
| 98 // Sets the toolbar's height to a value appropriate for the given compression. | 95 // Sets the toolbar's height to a value appropriate for the given compression. |
| 99 // Also adjusts the bookmark bar's height by the opposite amount in order to | 96 // Also adjusts the bookmark bar's height by the opposite amount in order to |
| 100 // keep the total height of the two views constant. | 97 // keep the total height of the two views constant. |
| 101 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; | 98 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; |
| 102 | 99 |
| 103 // Moves views between windows in preparation for fullscreen mode when not using | 100 // Moves views between windows in preparation for fullscreen mode when not using |
| 104 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window | 101 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window |
| 105 // for fullscreen mode, so there is no need to move views around.) This method | 102 // for fullscreen mode, so there is no need to move views around.) This method |
| 106 // does not position views; callers must also call |-layoutSubviews:|. | 103 // does not position views; callers must also call |-layoutSubviews:|. |
| 107 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen | 104 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 (fullscreen_mac::SlidingStyle)style; | 162 (fullscreen_mac::SlidingStyle)style; |
| 166 | 163 |
| 167 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical | 164 // Toggles the AppKit Fullscreen API. By default, doing so enters Canonical |
| 168 // Fullscreen. | 165 // Fullscreen. |
| 169 - (void)enterAppKitFullscreen; | 166 - (void)enterAppKitFullscreen; |
| 170 - (void)exitAppKitFullscreen; | 167 - (void)exitAppKitFullscreen; |
| 171 | 168 |
| 172 @end // @interface BrowserWindowController(Private) | 169 @end // @interface BrowserWindowController(Private) |
| 173 | 170 |
| 174 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 171 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |