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 17 matching lines...) Expand all Loading... |
28 class BrowserWindowCocoa; | 28 class BrowserWindowCocoa; |
29 @class ChromeBrowserWindow; | 29 @class ChromeBrowserWindow; |
30 class ConstrainedWindowMac; | 30 class ConstrainedWindowMac; |
31 @class DownloadShelfController; | 31 @class DownloadShelfController; |
32 @class FindBarCocoaController; | 32 @class FindBarCocoaController; |
33 @class GTMWindowSheetController; | 33 @class GTMWindowSheetController; |
34 @class InfoBarContainerController; | 34 @class InfoBarContainerController; |
35 class LocationBar; | 35 class LocationBar; |
36 class StatusBubbleMac; | 36 class StatusBubbleMac; |
37 class TabContents; | 37 class TabContents; |
38 @class TabContentsController; | |
39 @class TabStripController; | 38 @class TabStripController; |
40 class TabStripModelObserverBridge; | 39 class TabStripModelObserverBridge; |
41 @class TabStripView; | 40 @class TabStripView; |
42 @class ToolbarController; | 41 @class ToolbarController; |
43 @class TitlebarController; | 42 @class TitlebarController; |
44 | 43 |
45 @interface BrowserWindowController : | 44 @interface BrowserWindowController : |
46 TabWindowController<NSUserInterfaceValidations, | 45 TabWindowController<NSUserInterfaceValidations, |
47 BookmarkBarControllerDelegate, | 46 BookmarkBarControllerDelegate, |
48 BrowserCommandExecutor, | 47 BrowserCommandExecutor, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // Returns YES if the window became the active per-tab sheet of the current tab, | 207 // Returns YES if the window became the active per-tab sheet of the current tab, |
209 // or NO if the current tab already has a per-tab sheet. If this returns NO, | 208 // or NO if the current tab already has a per-tab sheet. If this returns NO, |
210 // the window's |Realize()| method will be called again when the curren sheet | 209 // the window's |Realize()| method will be called again when the curren sheet |
211 // disappears. The window should then call |attachConstrainedWindow:| again. | 210 // disappears. The window should then call |attachConstrainedWindow:| again. |
212 - (BOOL)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 211 - (BOOL)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
213 | 212 |
214 // Closes the tab sheet |window| and potentially shows the next sheet in the | 213 // Closes the tab sheet |window| and potentially shows the next sheet in the |
215 // tab's sheet queue. | 214 // tab's sheet queue. |
216 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 215 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
217 | 216 |
| 217 // Shows or hides the docked web inspector depending on |contents|'s state. |
| 218 - (void)updateDevToolsForContents:(TabContents*)contents; |
| 219 |
218 @end | 220 @end |
219 | 221 |
220 // Methods which are either only for testing, or only public for testing. | 222 // Methods which are either only for testing, or only public for testing. |
221 @interface BrowserWindowController(TestingAPI) | 223 @interface BrowserWindowController(TestingAPI) |
222 | 224 |
223 // Put the incognito badge on the browser and adjust the tab strip | 225 // Put the incognito badge on the browser and adjust the tab strip |
224 // accordingly. | 226 // accordingly. |
225 - (void)installIncognitoBadge; | 227 - (void)installIncognitoBadge; |
226 | 228 |
227 // Allows us to initWithBrowser withOUT taking ownership of the browser. | 229 // Allows us to initWithBrowser withOUT taking ownership of the browser. |
(...skipping 15 matching lines...) Expand all Loading... |
243 // Return a point suitable for the topLeft for a bookmark bubble. | 245 // Return a point suitable for the topLeft for a bookmark bubble. |
244 - (NSPoint)topLeftForBubble; | 246 - (NSPoint)topLeftForBubble; |
245 | 247 |
246 // Resets any saved state about window growth (due to showing the bookmark bar | 248 // Resets any saved state about window growth (due to showing the bookmark bar |
247 // or the download shelf), so that future shrinking will occur from the bottom. | 249 // or the download shelf), so that future shrinking will occur from the bottom. |
248 - (void)resetWindowGrowthState; | 250 - (void)resetWindowGrowthState; |
249 | 251 |
250 @end // BrowserWindowController(TestingAPI) | 252 @end // BrowserWindowController(TestingAPI) |
251 | 253 |
252 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 254 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |