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 BookmarkURLOpener, | |
48 BookmarkBubbleControllerDelegate, | 47 BookmarkBubbleControllerDelegate, |
49 BrowserCommandExecutor, | 48 BrowserCommandExecutor, |
50 ViewResizer, | 49 ViewResizer, |
51 GTMThemeDelegate> { | 50 GTMThemeDelegate> { |
52 @private | 51 @private |
53 // The ordering of these members is important as it determines the order in | 52 // The ordering of these members is important as it determines the order in |
54 // which they are destroyed. |browser_| needs to be destroyed last as most of | 53 // which they are destroyed. |browser_| needs to be destroyed last as most of |
55 // the other objects hold weak references to it or things it owns | 54 // the other objects hold weak references to it or things it owns |
56 // (tab/toolbar/bookmark models, profiles, etc). | 55 // (tab/toolbar/bookmark models, profiles, etc). |
57 scoped_ptr<Browser> browser_; | 56 scoped_ptr<Browser> browser_; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 186 |
188 // Updates a bookmark sync UI item (expected to be a menu item). This is | 187 // Updates a bookmark sync UI item (expected to be a menu item). This is |
189 // called every time the menu containing the sync UI item is displayed. | 188 // called every time the menu containing the sync UI item is displayed. |
190 - (void)updateSyncItem:(id)syncItem | 189 - (void)updateSyncItem:(id)syncItem |
191 syncEnabled:(BOOL)syncEnabled | 190 syncEnabled:(BOOL)syncEnabled |
192 status:(SyncStatusUIHelper::MessageType)status; | 191 status:(SyncStatusUIHelper::MessageType)status; |
193 | 192 |
194 @end // BrowserWindowController(TestingAPI) | 193 @end // BrowserWindowController(TestingAPI) |
195 | 194 |
196 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 195 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |