| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // Invoked via BrowserWindowCocoa::OnActiveTabChanged, happens whenever a | 274 // Invoked via BrowserWindowCocoa::OnActiveTabChanged, happens whenever a |
| 275 // new tab becomes active. | 275 // new tab becomes active. |
| 276 - (void)onActiveTabChanged:(content::WebContents*)oldContents | 276 - (void)onActiveTabChanged:(content::WebContents*)oldContents |
| 277 to:(content::WebContents*)newContents; | 277 to:(content::WebContents*)newContents; |
| 278 | 278 |
| 279 // Happens when the zoom level is changed in the active tab, the active tab is | 279 // Happens when the zoom level is changed in the active tab, the active tab is |
| 280 // changed, or a new browser window or tab is created. |canShowBubble| denotes | 280 // changed, or a new browser window or tab is created. |canShowBubble| denotes |
| 281 // whether it would be appropriate to show a zoom bubble or not. | 281 // whether it would be appropriate to show a zoom bubble or not. |
| 282 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; | 282 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; |
| 283 | 283 |
| 284 // Return the rect, in WebKit coordinates (flipped), of the window's grow box | |
| 285 // in the coordinate system of the content area of the currently selected tab. | |
| 286 - (NSRect)selectedTabGrowBoxRect; | |
| 287 | |
| 288 // Called to tell the selected tab to update its loading state. | 284 // Called to tell the selected tab to update its loading state. |
| 289 // |force| is set if the update is due to changing tabs, as opposed to | 285 // |force| is set if the update is due to changing tabs, as opposed to |
| 290 // the page-load finishing. See comment in reload_button_cocoa.h. | 286 // the page-load finishing. See comment in reload_button_cocoa.h. |
| 291 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; | 287 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; |
| 292 | 288 |
| 293 // Brings this controller's window to the front. | 289 // Brings this controller's window to the front. |
| 294 - (void)activate; | 290 - (void)activate; |
| 295 | 291 |
| 296 // Make the location bar the first responder, if possible. | 292 // Make the location bar the first responder, if possible. |
| 297 - (void)focusLocationBar:(BOOL)selectAll; | 293 - (void)focusLocationBar:(BOOL)selectAll; |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 // Returns the fullscreen toolbar controller. | 628 // Returns the fullscreen toolbar controller. |
| 633 - (FullscreenToolbarController*)fullscreenToolbarController; | 629 - (FullscreenToolbarController*)fullscreenToolbarController; |
| 634 | 630 |
| 635 // Sets the fullscreen toolbar controller. | 631 // Sets the fullscreen toolbar controller. |
| 636 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; | 632 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; |
| 637 | 633 |
| 638 @end // @interface BrowserWindowController (TestingAPI) | 634 @end // @interface BrowserWindowController (TestingAPI) |
| 639 | 635 |
| 640 | 636 |
| 641 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 637 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |