| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Sets whether or not the current page in the frontmost tab is bookmarked. | 98 // Sets whether or not the current page in the frontmost tab is bookmarked. |
| 99 - (void)setStarredState:(BOOL)isStarred; | 99 - (void)setStarredState:(BOOL)isStarred; |
| 100 | 100 |
| 101 // Return the rect, in WebKit coordinates (flipped), of the window's grow box | 101 // Return the rect, in WebKit coordinates (flipped), of the window's grow box |
| 102 // in the coordinate system of the content area of the currently selected tab. | 102 // in the coordinate system of the content area of the currently selected tab. |
| 103 - (NSRect)selectedTabGrowBoxRect; | 103 - (NSRect)selectedTabGrowBoxRect; |
| 104 | 104 |
| 105 // Called to tell the selected tab to update its loading state. | 105 // Called to tell the selected tab to update its loading state. |
| 106 - (void)setIsLoading:(BOOL)isLoading; | 106 - (void)setIsLoading:(BOOL)isLoading; |
| 107 | 107 |
| 108 // Called to start/stop the loading animations. | |
| 109 - (void)updateLoadingAnimations:(BOOL)animate; | |
| 110 | |
| 111 // Make the location bar the first responder, if possible. | 108 // Make the location bar the first responder, if possible. |
| 112 - (void)focusLocationBar; | 109 - (void)focusLocationBar; |
| 113 | 110 |
| 114 - (BOOL)isBookmarkBarVisible; | 111 - (BOOL)isBookmarkBarVisible; |
| 115 | 112 |
| 116 - (void)toggleBookmarkBar; | 113 - (void)toggleBookmarkBar; |
| 117 | 114 |
| 118 - (BOOL)isDownloadShelfVisible; | 115 - (BOOL)isDownloadShelfVisible; |
| 119 | 116 |
| 120 // Lazily creates the download shelf in visible state if it doesn't exist yet. | 117 // Lazily creates the download shelf in visible state if it doesn't exist yet. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 168 |
| 172 // Return an autoreleased NSWindow suitable for fullscreen use. | 169 // Return an autoreleased NSWindow suitable for fullscreen use. |
| 173 - (NSWindow*)fullscreenWindow; | 170 - (NSWindow*)fullscreenWindow; |
| 174 | 171 |
| 175 // Return a point suitable for the topLeft for a bookmark bubble. | 172 // Return a point suitable for the topLeft for a bookmark bubble. |
| 176 - (NSPoint)topLeftForBubble; | 173 - (NSPoint)topLeftForBubble; |
| 177 | 174 |
| 178 @end // BrowserWindowController(TestingAPI) | 175 @end // BrowserWindowController(TestingAPI) |
| 179 | 176 |
| 180 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 177 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |