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