| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // changed, or a new browser window or tab is created. |canShowBubble| denotes | 263 // changed, or a new browser window or tab is created. |canShowBubble| denotes |
| 264 // whether it would be appropriate to show a zoom bubble or not. | 264 // whether it would be appropriate to show a zoom bubble or not. |
| 265 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; | 265 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; |
| 266 | 266 |
| 267 // Return the rect, in WebKit coordinates (flipped), of the window's grow box | 267 // Return the rect, in WebKit coordinates (flipped), of the window's grow box |
| 268 // in the coordinate system of the content area of the currently selected tab. | 268 // in the coordinate system of the content area of the currently selected tab. |
| 269 - (NSRect)selectedTabGrowBoxRect; | 269 - (NSRect)selectedTabGrowBoxRect; |
| 270 | 270 |
| 271 // Called to tell the selected tab to update its loading state. | 271 // Called to tell the selected tab to update its loading state. |
| 272 // |force| is set if the update is due to changing tabs, as opposed to | 272 // |force| is set if the update is due to changing tabs, as opposed to |
| 273 // the page-load finishing. See comment in reload_button.h. | 273 // the page-load finishing. See comment in reload_button_cocoa.h. |
| 274 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; | 274 - (void)setIsLoading:(BOOL)isLoading force:(BOOL)force; |
| 275 | 275 |
| 276 // Brings this controller's window to the front. | 276 // Brings this controller's window to the front. |
| 277 - (void)activate; | 277 - (void)activate; |
| 278 | 278 |
| 279 // Make the location bar the first responder, if possible. | 279 // Make the location bar the first responder, if possible. |
| 280 - (void)focusLocationBar:(BOOL)selectAll; | 280 - (void)focusLocationBar:(BOOL)selectAll; |
| 281 | 281 |
| 282 // Make the (currently-selected) tab contents the first responder, if possible. | 282 // Make the (currently-selected) tab contents the first responder, if possible. |
| 283 - (void)focusTabContents; | 283 - (void)focusTabContents; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 // positioned relative to. | 607 // positioned relative to. |
| 608 - (NSRect)omniboxPopupAnchorRect; | 608 - (NSRect)omniboxPopupAnchorRect; |
| 609 | 609 |
| 610 // Force a layout of info bars. | 610 // Force a layout of info bars. |
| 611 - (void)layoutInfoBars; | 611 - (void)layoutInfoBars; |
| 612 | 612 |
| 613 @end // @interface BrowserWindowController (TestingAPI) | 613 @end // @interface BrowserWindowController (TestingAPI) |
| 614 | 614 |
| 615 | 615 |
| 616 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 616 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |