| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // Delegate method for the status bubble to query its base frame. | 313 // Delegate method for the status bubble to query its base frame. |
| 314 - (NSRect)statusBubbleBaseFrame; | 314 - (NSRect)statusBubbleBaseFrame; |
| 315 | 315 |
| 316 // Show the bookmark bubble (e.g. user just clicked on the STAR) | 316 // Show the bookmark bubble (e.g. user just clicked on the STAR) |
| 317 - (void)showBookmarkBubbleForURL:(const GURL&)url | 317 - (void)showBookmarkBubbleForURL:(const GURL&)url |
| 318 alreadyBookmarked:(BOOL)alreadyBookmarked; | 318 alreadyBookmarked:(BOOL)alreadyBookmarked; |
| 319 | 319 |
| 320 // Show the translate bubble. | 320 // Show the translate bubble. |
| 321 - (void)showTranslateBubbleForWebContents:(content::WebContents*)contents | 321 - (void)showTranslateBubbleForWebContents:(content::WebContents*)contents |
| 322 step:(translate::TranslateStep)step | 322 step:(translate::TranslateStep)step |
| 323 errorType:(TranslateErrors::Type)errorType; | 323 errorType: |
| 324 (translate::TranslateErrors::Type)errorType; |
| 324 | 325 |
| 325 // Shows or hides the docked web inspector depending on |contents|'s state. | 326 // Shows or hides the docked web inspector depending on |contents|'s state. |
| 326 - (void)updateDevToolsForContents:(content::WebContents*)contents; | 327 - (void)updateDevToolsForContents:(content::WebContents*)contents; |
| 327 | 328 |
| 328 // Gets the current theme provider. | 329 // Gets the current theme provider. |
| 329 - (ui::ThemeProvider*)themeProvider; | 330 - (ui::ThemeProvider*)themeProvider; |
| 330 | 331 |
| 331 // Gets the window style. | 332 // Gets the window style. |
| 332 - (ThemedWindowStyle)themedWindowStyle; | 333 - (ThemedWindowStyle)themedWindowStyle; |
| 333 | 334 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 // positioned relative to. | 533 // positioned relative to. |
| 533 - (NSRect)omniboxPopupAnchorRect; | 534 - (NSRect)omniboxPopupAnchorRect; |
| 534 | 535 |
| 535 // Force a layout of info bars. | 536 // Force a layout of info bars. |
| 536 - (void)layoutInfoBars; | 537 - (void)layoutInfoBars; |
| 537 | 538 |
| 538 @end // @interface BrowserWindowController (TestingAPI) | 539 @end // @interface BrowserWindowController (TestingAPI) |
| 539 | 540 |
| 540 | 541 |
| 541 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 542 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |