OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // Returns YES if the bookmark bar is currently animating. | 294 // Returns YES if the bookmark bar is currently animating. |
295 - (BOOL)isBookmarkBarAnimating; | 295 - (BOOL)isBookmarkBarAnimating; |
296 | 296 |
297 - (BookmarkBarController*)bookmarkBarController; | 297 - (BookmarkBarController*)bookmarkBarController; |
298 | 298 |
299 - (DevToolsController*)devToolsController; | 299 - (DevToolsController*)devToolsController; |
300 | 300 |
301 - (BOOL)isDownloadShelfVisible; | 301 - (BOOL)isDownloadShelfVisible; |
302 | 302 |
303 // Lazily creates the download shelf in visible state if it doesn't exist yet. | 303 // Lazily creates the download shelf in visible state if it doesn't exist yet. |
| 304 - (void)createAndAddDownloadShelf; |
| 305 |
| 306 // Returns the download shelf controller, if it exists. |
304 - (DownloadShelfController*)downloadShelf; | 307 - (DownloadShelfController*)downloadShelf; |
305 | 308 |
306 // Retains the given FindBarCocoaController and adds its view to this | 309 // Retains the given FindBarCocoaController and adds its view to this |
307 // browser window. Must only be called once per | 310 // browser window. Must only be called once per |
308 // BrowserWindowController. | 311 // BrowserWindowController. |
309 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; | 312 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; |
310 | 313 |
311 // The user changed the theme. | 314 // The user changed the theme. |
312 - (void)userChangedTheme; | 315 - (void)userChangedTheme; |
313 | 316 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 // positioned relative to. | 578 // positioned relative to. |
576 - (NSRect)omniboxPopupAnchorRect; | 579 - (NSRect)omniboxPopupAnchorRect; |
577 | 580 |
578 // Force a layout of info bars. | 581 // Force a layout of info bars. |
579 - (void)layoutInfoBars; | 582 - (void)layoutInfoBars; |
580 | 583 |
581 @end // @interface BrowserWindowController (TestingAPI) | 584 @end // @interface BrowserWindowController (TestingAPI) |
582 | 585 |
583 | 586 |
584 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 587 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |