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/browser_window_layout.h" |
9 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" | 10 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" |
10 | 11 |
11 @class BrowserWindowLayout; | 12 @class BrowserWindowLayout; |
12 | 13 |
13 // Private methods for the |BrowserWindowController|. This category should | 14 // Private methods for the |BrowserWindowController|. This category should |
14 // contain the private methods used by different parts of the BWC; private | 15 // contain the private methods used by different parts of the BWC; private |
15 // methods used only by single parts should be declared in their own file. | 16 // methods used only by single parts should be declared in their own file. |
16 // TODO(viettrungluu): [crbug.com/35543] work on splitting out stuff from the | 17 // TODO(viettrungluu): [crbug.com/35543] work on splitting out stuff from the |
17 // BWC, and figuring out which methods belong here (need to unravel | 18 // BWC, and figuring out which methods belong here (need to unravel |
18 // "dependencies"). | 19 // "dependencies"). |
(...skipping 14 matching lines...) Expand all Loading... |
33 | 34 |
34 // Repositions the window's subviews. From the top down: toolbar, normal | 35 // Repositions the window's subviews. From the top down: toolbar, normal |
35 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), | 36 // bookmark bar (if shown), infobar, NTP detached bookmark bar (if shown), |
36 // content area, download shelf (if any). | 37 // content area, download shelf (if any). |
37 - (void)layoutSubviews; | 38 - (void)layoutSubviews; |
38 | 39 |
39 // Shows the informational "how to exit fullscreen" bubble. | 40 // Shows the informational "how to exit fullscreen" bubble. |
40 - (void)showFullscreenExitBubbleIfNecessary; | 41 - (void)showFullscreenExitBubbleIfNecessary; |
41 - (void)destroyFullscreenExitBubbleIfNecessary; | 42 - (void)destroyFullscreenExitBubbleIfNecessary; |
42 | 43 |
43 // Lays out the tab strip at the given maximum y-coordinate, with the given | 44 // Lays out the tab strip and avatar button. |
44 // width, possibly for fullscreen mode; returns the new maximum y (below the | 45 - (void)applyTabStripLayout:(const chrome::TabStripLayout&)layout; |
45 // tab strip). This is safe to call even when there is no tab strip. | |
46 - (CGFloat)layoutTabStripAtMaxY:(CGFloat)maxY | |
47 width:(CGFloat)width | |
48 fullscreen:(BOOL)fullscreen; | |
49 | 46 |
50 // Returns YES if the bookmark bar should be placed below the infobar, NO | 47 // Returns YES if the bookmark bar should be placed below the infobar, NO |
51 // otherwise. | 48 // otherwise. |
52 - (BOOL)placeBookmarkBarBelowInfoBar; | 49 - (BOOL)placeBookmarkBarBelowInfoBar; |
53 | 50 |
54 | 51 |
55 // Lays out the tab content area in the given frame. If the height changes, | 52 // Lays out the tab content area in the given frame. If the height changes, |
56 // sends a message to the renderer to resize. | 53 // sends a message to the renderer to resize. |
57 - (void)layoutTabContentArea:(NSRect)frame; | 54 - (void)layoutTabContentArea:(NSRect)frame; |
58 | 55 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // to prevent redraws. | 153 // to prevent redraws. |
157 - (void)setContentViewSubviews:(NSArray*)subviews; | 154 - (void)setContentViewSubviews:(NSArray*)subviews; |
158 | 155 |
159 // A hack required to get NSThemeFrame sub layers to order correctly. See | 156 // A hack required to get NSThemeFrame sub layers to order correctly. See |
160 // implementation for more details. | 157 // implementation for more details. |
161 - (void)updateSubviewZOrderHack; | 158 - (void)updateSubviewZOrderHack; |
162 | 159 |
163 @end // @interface BrowserWindowController(Private) | 160 @end // @interface BrowserWindowController(Private) |
164 | 161 |
165 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 162 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
OLD | NEW |