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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // Updates the toolbar (and transitively the location bar) with the states of | 216 // Updates the toolbar (and transitively the location bar) with the states of |
217 // the specified |tab|. If |shouldRestore| is true, we're switching | 217 // the specified |tab|. If |shouldRestore| is true, we're switching |
218 // (back?) to this tab and should restore any previous location bar state | 218 // (back?) to this tab and should restore any previous location bar state |
219 // (such as user editing) as well. | 219 // (such as user editing) as well. |
220 - (void)updateToolbarWithContents:(content::WebContents*)tab | 220 - (void)updateToolbarWithContents:(content::WebContents*)tab |
221 shouldRestoreState:(BOOL)shouldRestore; | 221 shouldRestoreState:(BOOL)shouldRestore; |
222 | 222 |
223 // Sets whether or not the current page in the frontmost tab is bookmarked. | 223 // Sets whether or not the current page in the frontmost tab is bookmarked. |
224 - (void)setStarredState:(BOOL)isStarred; | 224 - (void)setStarredState:(BOOL)isStarred; |
225 | 225 |
226 // Happens when the zoom level is changed in the active tab, the active tab is | |
227 // changed, or a new browser window or tab is created. |canShowBubble| denotes | |
228 // whether it would be appropriate to show a zoom bubble or not. | |
229 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; | |
230 | |
231 // 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 |
232 // 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. |
233 - (NSRect)selectedTabGrowBoxRect; | 228 - (NSRect)selectedTabGrowBoxRect; |
234 | 229 |
235 // Called to tell the selected tab to update its loading state. | 230 // Called to tell the selected tab to update its loading state. |
236 // |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 |
237 // the page-load finishing. See comment in reload_button.h. | 232 // the page-load finishing. See comment in reload_button.h. |
238 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; | 233 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; |
239 | 234 |
240 // Brings this controller's window to the front. | 235 // Brings this controller's window to the front. |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // |source| rect doesn't fit into |target|. | 482 // |source| rect doesn't fit into |target|. |
488 - (NSSize)overflowFrom:(NSRect)source | 483 - (NSSize)overflowFrom:(NSRect)source |
489 to:(NSRect)target; | 484 to:(NSRect)target; |
490 | 485 |
491 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 486 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
492 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 487 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
493 @end // @interface BrowserWindowController (TestingAPI) | 488 @end // @interface BrowserWindowController (TestingAPI) |
494 | 489 |
495 | 490 |
496 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 491 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |