| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 // Resets the toolbar's tab state for |tab|. | 247 // Resets the toolbar's tab state for |tab|. |
| 248 - (void)resetTabState:(content::WebContents*)tab; | 248 - (void)resetTabState:(content::WebContents*)tab; |
| 249 | 249 |
| 250 // Sets whether or not the current page in the frontmost tab is bookmarked. | 250 // Sets whether or not the current page in the frontmost tab is bookmarked. |
| 251 - (void)setStarredState:(BOOL)isStarred; | 251 - (void)setStarredState:(BOOL)isStarred; |
| 252 | 252 |
| 253 // Sets whether or not the current page is translated. | 253 // Sets whether or not the current page is translated. |
| 254 - (void)setCurrentPageIsTranslated:(BOOL)on; | 254 - (void)setCurrentPageIsTranslated:(BOOL)on; |
| 255 | 255 |
| 256 // Invoked via BrowserWindowCocoa::OnActiveTabChanged, happens whenever a |
| 257 // new tab becomes active. |
| 258 - (void)onActiveTabChanged:(content::WebContents*)oldContents |
| 259 to:(content::WebContents*)newContents; |
| 260 |
| 256 // Happens when the zoom level is changed in the active tab, the active tab is | 261 // Happens when the zoom level is changed in the active tab, the active tab is |
| 257 // changed, or a new browser window or tab is created. |canShowBubble| denotes | 262 // changed, or a new browser window or tab is created. |canShowBubble| denotes |
| 258 // whether it would be appropriate to show a zoom bubble or not. | 263 // whether it would be appropriate to show a zoom bubble or not. |
| 259 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; | 264 - (void)zoomChangedForActiveTab:(BOOL)canShowBubble; |
| 260 | 265 |
| 261 // Return the rect, in WebKit coordinates (flipped), of the window's grow box | 266 // Return the rect, in WebKit coordinates (flipped), of the window's grow box |
| 262 // in the coordinate system of the content area of the currently selected tab. | 267 // in the coordinate system of the content area of the currently selected tab. |
| 263 - (NSRect)selectedTabGrowBoxRect; | 268 - (NSRect)selectedTabGrowBoxRect; |
| 264 | 269 |
| 265 // Called to tell the selected tab to update its loading state. | 270 // Called to tell the selected tab to update its loading state. |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; | 605 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; |
| 601 | 606 |
| 602 // Gets the rect, in window base coordinates, that the omnibox popup should be | 607 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 603 // positioned relative to. | 608 // positioned relative to. |
| 604 - (NSRect)omniboxPopupAnchorRect; | 609 - (NSRect)omniboxPopupAnchorRect; |
| 605 | 610 |
| 606 @end // @interface BrowserWindowController (TestingAPI) | 611 @end // @interface BrowserWindowController (TestingAPI) |
| 607 | 612 |
| 608 | 613 |
| 609 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 614 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |