| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 - (BOOL)isBookmarkBarVisible; | 258 - (BOOL)isBookmarkBarVisible; |
| 259 | 259 |
| 260 // Returns YES if the bookmark bar is currently animating. | 260 // Returns YES if the bookmark bar is currently animating. |
| 261 - (BOOL)isBookmarkBarAnimating; | 261 - (BOOL)isBookmarkBarAnimating; |
| 262 | 262 |
| 263 // Called after bookmark bar visibility changes (due to pref change or change in | 263 // Called after bookmark bar visibility changes (due to pref change or change in |
| 264 // tab/tab contents). | 264 // tab/tab contents). |
| 265 - (void)updateBookmarkBarVisibilityWithAnimation:(BOOL)animate; | 265 - (void)updateBookmarkBarVisibilityWithAnimation:(BOOL)animate; |
| 266 | 266 |
| 267 - (BookmarkBarController*)bookmarkBarController; |
| 268 |
| 267 - (BOOL)isDownloadShelfVisible; | 269 - (BOOL)isDownloadShelfVisible; |
| 268 | 270 |
| 269 // Lazily creates the download shelf in visible state if it doesn't exist yet. | 271 // Lazily creates the download shelf in visible state if it doesn't exist yet. |
| 270 - (DownloadShelfController*)downloadShelf; | 272 - (DownloadShelfController*)downloadShelf; |
| 271 | 273 |
| 272 // Retains the given FindBarCocoaController and adds its view to this | 274 // Retains the given FindBarCocoaController and adds its view to this |
| 273 // browser window. Must only be called once per | 275 // browser window. Must only be called once per |
| 274 // BrowserWindowController. | 276 // BrowserWindowController. |
| 275 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; | 277 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; |
| 276 | 278 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 // |source| rect doesn't fit into |target|. | 477 // |source| rect doesn't fit into |target|. |
| 476 - (NSSize)overflowFrom:(NSRect)source | 478 - (NSSize)overflowFrom:(NSRect)source |
| 477 to:(NSRect)target; | 479 to:(NSRect)target; |
| 478 | 480 |
| 479 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 481 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
| 480 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 482 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 481 @end // @interface BrowserWindowController (TestingAPI) | 483 @end // @interface BrowserWindowController (TestingAPI) |
| 482 | 484 |
| 483 | 485 |
| 484 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 486 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |