| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; | 273 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; |
| 274 | 274 |
| 275 // Called to tell the selected tab to update its loading state. | 275 // Called to tell the selected tab to update its loading state. |
| 276 // |force| is set if the update is due to changing tabs, as opposed to | 276 // |force| is set if the update is due to changing tabs, as opposed to |
| 277 // the page-load finishing. See comment in reload_button_cocoa.h. | 277 // the page-load finishing. See comment in reload_button_cocoa.h. |
| 278 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; | 278 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; |
| 279 | 279 |
| 280 // Brings this controller's window to the front. | 280 // Brings this controller's window to the front. |
| 281 - (void)activate; | 281 - (void)activate; |
| 282 | 282 |
| 283 // Return YES if the location bar is the first responder. |
| 284 - (BOOL)locationBarHasFocus; |
| 285 |
| 283 // Make the location bar the first responder, if possible. | 286 // Make the location bar the first responder, if possible. |
| 284 - (void)focusLocationBar:(BOOL)selectAll; | 287 - (void)focusLocationBar:(BOOL)selectAll; |
| 285 | 288 |
| 286 // Make the (currently-selected) tab contents the first responder, if possible. | 289 // Make the (currently-selected) tab contents the first responder, if possible. |
| 287 - (void)focusTabContents; | 290 - (void)focusTabContents; |
| 288 | 291 |
| 289 // Returns the frame of the regular (non-fullscreened) window (even if the | 292 // Returns the frame of the regular (non-fullscreened) window (even if the |
| 290 // window is currently in fullscreen mode). The frame is returned in Cocoa | 293 // window is currently in fullscreen mode). The frame is returned in Cocoa |
| 291 // coordinates (origin in bottom-left). | 294 // coordinates (origin in bottom-left). |
| 292 - (NSRect)regularWindowFrame; | 295 - (NSRect)regularWindowFrame; |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // Returns the fullscreen toolbar controller. | 609 // Returns the fullscreen toolbar controller. |
| 607 - (FullscreenToolbarController*)fullscreenToolbarController; | 610 - (FullscreenToolbarController*)fullscreenToolbarController; |
| 608 | 611 |
| 609 // Sets the fullscreen toolbar controller. | 612 // Sets the fullscreen toolbar controller. |
| 610 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; | 613 - (void)setFullscreenToolbarController:(FullscreenToolbarController*)controller; |
| 611 | 614 |
| 612 @end // @interface BrowserWindowController (TestingAPI) | 615 @end // @interface BrowserWindowController (TestingAPI) |
| 613 | 616 |
| 614 | 617 |
| 615 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 618 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |