OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 // A class acting as the Objective-C controller for the Browser object. Handles | 8 // A class acting as the Objective-C controller for the Browser object. Handles |
9 // interactions between Cocoa and the cross-platform code. | 9 // interactions between Cocoa and the cross-platform code. |
10 | 10 |
11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
12 | 12 |
13 class Browser; | 13 class Browser; |
14 class BrowserWindow; | 14 class BrowserWindow; |
| 15 class BrowserWindowCocoa; |
15 class LocationBar; | 16 class LocationBar; |
16 class TabContents; | 17 class TabContents; |
17 @class TabStripView; | 18 @class TabStripView; |
18 @class TabContentsController; | 19 @class TabContentsController; |
19 @class TabStripController; | 20 @class TabStripController; |
20 | 21 |
21 @interface BrowserWindowController : | 22 @interface BrowserWindowController : |
22 NSWindowController<NSUserInterfaceValidations> { | 23 NSWindowController<NSUserInterfaceValidations> { |
23 @private | 24 @private |
24 Browser* browser_; | 25 Browser* browser_; |
25 BrowserWindow* windowShim_; | 26 BrowserWindowCocoa* windowShim_; |
26 TabStripController* tabStripController_; | 27 TabStripController* tabStripController_; |
27 | 28 |
28 IBOutlet NSBox* contentBox_; | 29 IBOutlet NSBox* contentBox_; |
29 IBOutlet TabStripView* tabStripView_; | 30 IBOutlet TabStripView* tabStripView_; |
30 | 31 |
31 // Views for the toolbar | 32 // Views for the toolbar |
32 IBOutlet NSView* toolbarView_; | 33 IBOutlet NSView* toolbarView_; |
33 IBOutlet NSTextField* urlBarView_; | 34 IBOutlet NSTextField* urlBarView_; |
34 } | 35 } |
35 | 36 |
(...skipping 27 matching lines...) Expand all Loading... |
63 | 64 |
64 // Called to tell the selected tab to update its loading state. | 65 // Called to tell the selected tab to update its loading state. |
65 - (void)setIsLoading:(BOOL)isLoading; | 66 - (void)setIsLoading:(BOOL)isLoading; |
66 | 67 |
67 // Called to start/stop the loading animations. | 68 // Called to start/stop the loading animations. |
68 - (void)updateLoadingAnimations:(BOOL)animate; | 69 - (void)updateLoadingAnimations:(BOOL)animate; |
69 | 70 |
70 // Make the location bar the first responder, if possible. | 71 // Make the location bar the first responder, if possible. |
71 - (void)focusLocationBar; | 72 - (void)focusLocationBar; |
72 | 73 |
| 74 - (BOOL)isBookmarkBarVisible; |
| 75 |
| 76 - (void)toggleBookmarkBar; |
| 77 |
73 @end | 78 @end |
74 | 79 |
75 #endif // CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ | 80 #endif // CHROME_BROWSER_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |