| 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_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
| 9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
| 10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class TabContents; | 37 class TabContents; |
| 38 @class TabContentsController; | 38 @class TabContentsController; |
| 39 @class TabStripController; | 39 @class TabStripController; |
| 40 class TabStripModelObserverBridge; | 40 class TabStripModelObserverBridge; |
| 41 @class TabStripView; | 41 @class TabStripView; |
| 42 @class ToolbarController; | 42 @class ToolbarController; |
| 43 @class TitlebarController; | 43 @class TitlebarController; |
| 44 | 44 |
| 45 @interface BrowserWindowController : | 45 @interface BrowserWindowController : |
| 46 TabWindowController<NSUserInterfaceValidations, | 46 TabWindowController<NSUserInterfaceValidations, |
| 47 BookmarkBarControllerDelegate, |
| 47 BookmarkBubbleControllerDelegate, | 48 BookmarkBubbleControllerDelegate, |
| 48 BrowserCommandExecutor, | 49 BrowserCommandExecutor, |
| 49 ViewResizer, | 50 ViewResizer, |
| 50 GTMThemeDelegate> { | 51 GTMThemeDelegate> { |
| 51 @private | 52 @private |
| 52 // The ordering of these members is important as it determines the order in | 53 // The ordering of these members is important as it determines the order in |
| 53 // which they are destroyed. |browser_| needs to be destroyed last as most of | 54 // which they are destroyed. |browser_| needs to be destroyed last as most of |
| 54 // the other objects hold weak references to it or things it owns | 55 // the other objects hold weak references to it or things it owns |
| 55 // (tab/toolbar/bookmark models, profiles, etc). | 56 // (tab/toolbar/bookmark models, profiles, etc). |
| 56 scoped_ptr<Browser> browser_; | 57 scoped_ptr<Browser> browser_; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 - (void)setIsLoading:(BOOL)isLoading; | 116 - (void)setIsLoading:(BOOL)isLoading; |
| 116 | 117 |
| 117 // Brings this controller's window to the front. | 118 // Brings this controller's window to the front. |
| 118 - (void)activate; | 119 - (void)activate; |
| 119 | 120 |
| 120 // Make the location bar the first responder, if possible. | 121 // Make the location bar the first responder, if possible. |
| 121 - (void)focusLocationBar; | 122 - (void)focusLocationBar; |
| 122 | 123 |
| 123 - (BOOL)isBookmarkBarVisible; | 124 - (BOOL)isBookmarkBarVisible; |
| 124 | 125 |
| 125 // Called after the visibility perf changed. | 126 // Called after bookmark bar visibility changes (due to pref change or change in |
| 126 - (void)updateBookmarkBarVisibility; | 127 // tab/tab contents). |
| 128 - (void)updateBookmarkBarVisibilityWithAnimation:(BOOL)animate; |
| 127 | 129 |
| 128 - (BOOL)isDownloadShelfVisible; | 130 - (BOOL)isDownloadShelfVisible; |
| 129 | 131 |
| 130 // Lazily creates the download shelf in visible state if it doesn't exist yet. | 132 // Lazily creates the download shelf in visible state if it doesn't exist yet. |
| 131 - (DownloadShelfController*)downloadShelf; | 133 - (DownloadShelfController*)downloadShelf; |
| 132 | 134 |
| 133 // Retains the given FindBarCocoaController and adds its view to this | 135 // Retains the given FindBarCocoaController and adds its view to this |
| 134 // browser window. Must only be called once per | 136 // browser window. Must only be called once per |
| 135 // BrowserWindowController. | 137 // BrowserWindowController. |
| 136 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; | 138 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 196 |
| 195 // Updates a bookmark sync UI item (expected to be a menu item). This is | 197 // Updates a bookmark sync UI item (expected to be a menu item). This is |
| 196 // called every time the menu containing the sync UI item is displayed. | 198 // called every time the menu containing the sync UI item is displayed. |
| 197 - (void)updateSyncItem:(id)syncItem | 199 - (void)updateSyncItem:(id)syncItem |
| 198 syncEnabled:(BOOL)syncEnabled | 200 syncEnabled:(BOOL)syncEnabled |
| 199 status:(SyncStatusUIHelper::MessageType)status; | 201 status:(SyncStatusUIHelper::MessageType)status; |
| 200 | 202 |
| 201 @end // BrowserWindowController(TestingAPI) | 203 @end // BrowserWindowController(TestingAPI) |
| 202 | 204 |
| 203 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 205 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |