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