| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // Updates the toolbar (and transitively the location bar) with the states of | 206 // Updates the toolbar (and transitively the location bar) with the states of |
| 207 // the specified |tab|. If |shouldRestore| is true, we're switching | 207 // the specified |tab|. If |shouldRestore| is true, we're switching |
| 208 // (back?) to this tab and should restore any previous location bar state | 208 // (back?) to this tab and should restore any previous location bar state |
| 209 // (such as user editing) as well. | 209 // (such as user editing) as well. |
| 210 - (void)updateToolbarWithContents:(content::WebContents*)tab | 210 - (void)updateToolbarWithContents:(content::WebContents*)tab |
| 211 shouldRestoreState:(BOOL)shouldRestore; | 211 shouldRestoreState:(BOOL)shouldRestore; |
| 212 | 212 |
| 213 // Sets whether or not the current page in the frontmost tab is bookmarked. | 213 // Sets whether or not the current page in the frontmost tab is bookmarked. |
| 214 - (void)setStarredState:(BOOL)isStarred; | 214 - (void)setStarredState:(BOOL)isStarred; |
| 215 | 215 |
| 216 // Happens when the zoom level is changed in the active tab, the active tab is |
| 217 // changed, or a new browser window or tab is created. |canShowBubble| denotes |
| 218 // whether it would be appropriate to show a zoom bubble or not. |
| 219 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; |
| 220 |
| 216 // Return the rect, in WebKit coordinates (flipped), of the window's grow box | 221 // Return the rect, in WebKit coordinates (flipped), of the window's grow box |
| 217 // in the coordinate system of the content area of the currently selected tab. | 222 // in the coordinate system of the content area of the currently selected tab. |
| 218 - (NSRect)selectedTabGrowBoxRect; | 223 - (NSRect)selectedTabGrowBoxRect; |
| 219 | 224 |
| 220 // Called to tell the selected tab to update its loading state. | 225 // Called to tell the selected tab to update its loading state. |
| 221 // |force| is set if the update is due to changing tabs, as opposed to | 226 // |force| is set if the update is due to changing tabs, as opposed to |
| 222 // the page-load finishing. See comment in reload_button.h. | 227 // the page-load finishing. See comment in reload_button.h. |
| 223 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; | 228 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; |
| 224 | 229 |
| 225 // Brings this controller's window to the front. | 230 // Brings this controller's window to the front. |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // |source| rect doesn't fit into |target|. | 473 // |source| rect doesn't fit into |target|. |
| 469 - (NSSize)overflowFrom:(NSRect)source | 474 - (NSSize)overflowFrom:(NSRect)source |
| 470 to:(NSRect)target; | 475 to:(NSRect)target; |
| 471 | 476 |
| 472 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 477 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
| 473 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 478 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
| 474 @end // @interface BrowserWindowController (TestingAPI) | 479 @end // @interface BrowserWindowController (TestingAPI) |
| 475 | 480 |
| 476 | 481 |
| 477 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 482 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |