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_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // A class acting as the Objective-C controller for the Browser | 9 // A class acting as the Objective-C controller for the Browser |
10 // object. Handles interactions between Cocoa and the cross-platform | 10 // object. Handles interactions between Cocoa and the cross-platform |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 // Access the C++ bridge object representing the status bubble for the window. | 193 // Access the C++ bridge object representing the status bubble for the window. |
194 - (StatusBubbleMac*)statusBubble; | 194 - (StatusBubbleMac*)statusBubble; |
195 | 195 |
196 // Access the C++ bridge object representing the location bar. | 196 // Access the C++ bridge object representing the location bar. |
197 - (LocationBarViewMac*)locationBarBridge; | 197 - (LocationBarViewMac*)locationBarBridge; |
198 | 198 |
199 // Access the Profile object that backs this Browser. | 199 // Access the Profile object that backs this Browser. |
200 - (Profile*)profile; | 200 - (Profile*)profile; |
201 | 201 |
| 202 // Access the avatar button controller. |
| 203 - (AvatarButtonController*)avatarButtonController; |
| 204 |
202 // Updates the toolbar (and transitively the location bar) with the states of | 205 // Updates the toolbar (and transitively the location bar) with the states of |
203 // the specified |tab|. If |shouldRestore| is true, we're switching | 206 // the specified |tab|. If |shouldRestore| is true, we're switching |
204 // (back?) to this tab and should restore any previous location bar state | 207 // (back?) to this tab and should restore any previous location bar state |
205 // (such as user editing) as well. | 208 // (such as user editing) as well. |
206 - (void)updateToolbarWithContents:(TabContents*)tab | 209 - (void)updateToolbarWithContents:(TabContents*)tab |
207 shouldRestoreState:(BOOL)shouldRestore; | 210 shouldRestoreState:(BOOL)shouldRestore; |
208 | 211 |
209 // Sets whether or not the current page in the frontmost tab is bookmarked. | 212 // Sets whether or not the current page in the frontmost tab is bookmarked. |
210 - (void)setStarredState:(BOOL)isStarred; | 213 - (void)setStarredState:(BOOL)isStarred; |
211 | 214 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 - (void)resetWindowGrowthState; | 457 - (void)resetWindowGrowthState; |
455 | 458 |
456 // Computes by how far in each direction, horizontal and vertical, the | 459 // Computes by how far in each direction, horizontal and vertical, the |
457 // |source| rect doesn't fit into |target|. | 460 // |source| rect doesn't fit into |target|. |
458 - (NSSize)overflowFrom:(NSRect)source | 461 - (NSSize)overflowFrom:(NSRect)source |
459 to:(NSRect)target; | 462 to:(NSRect)target; |
460 @end // @interface BrowserWindowController (TestingAPI) | 463 @end // @interface BrowserWindowController (TestingAPI) |
461 | 464 |
462 | 465 |
463 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 466 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |