| 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 23 matching lines...) Expand all Loading... |
| 34 @class BrowserWindowEnterFullscreenTransition; | 34 @class BrowserWindowEnterFullscreenTransition; |
| 35 @class DevToolsController; | 35 @class DevToolsController; |
| 36 @class DownloadShelfController; | 36 @class DownloadShelfController; |
| 37 class ExtensionKeybindingRegistryCocoa; | 37 class ExtensionKeybindingRegistryCocoa; |
| 38 @class FindBarCocoaController; | 38 @class FindBarCocoaController; |
| 39 @class FullscreenModeController; | 39 @class FullscreenModeController; |
| 40 @class FullscreenWindow; | 40 @class FullscreenWindow; |
| 41 @class InfoBarContainerController; | 41 @class InfoBarContainerController; |
| 42 class LocationBarViewMac; | 42 class LocationBarViewMac; |
| 43 @class OverlayableContentsController; | 43 @class OverlayableContentsController; |
| 44 class PermissionBubbleCocoa; | |
| 45 @class PresentationModeController; | 44 @class PresentationModeController; |
| 46 class StatusBubbleMac; | 45 class StatusBubbleMac; |
| 47 @class TabStripController; | 46 @class TabStripController; |
| 48 @class TabStripView; | 47 @class TabStripView; |
| 49 @class ToolbarController; | 48 @class ToolbarController; |
| 50 @class TranslateBubbleController; | 49 @class TranslateBubbleController; |
| 51 | 50 |
| 52 namespace content { | 51 namespace content { |
| 53 class WebContents; | 52 class WebContents; |
| 54 } | 53 } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // Show the bookmark bubble (e.g. user just clicked on the STAR) | 324 // Show the bookmark bubble (e.g. user just clicked on the STAR) |
| 326 - (void)showBookmarkBubbleForURL:(const GURL&)url | 325 - (void)showBookmarkBubbleForURL:(const GURL&)url |
| 327 alreadyBookmarked:(BOOL)alreadyBookmarked; | 326 alreadyBookmarked:(BOOL)alreadyBookmarked; |
| 328 | 327 |
| 329 // Show the translate bubble. | 328 // Show the translate bubble. |
| 330 - (void)showTranslateBubbleForWebContents:(content::WebContents*)contents | 329 - (void)showTranslateBubbleForWebContents:(content::WebContents*)contents |
| 331 step:(translate::TranslateStep)step | 330 step:(translate::TranslateStep)step |
| 332 errorType: | 331 errorType: |
| 333 (translate::TranslateErrors::Type)errorType; | 332 (translate::TranslateErrors::Type)errorType; |
| 334 | 333 |
| 335 // Dismiss the permission bubble | 334 // Dismiss the bubbles. |
| 336 - (void)dismissPermissionBubble; | 335 // TODO(hcarmona): kill this method and move logic up to only caller? |
| 336 - (void)dismissBubble; |
| 337 | 337 |
| 338 // Shows or hides the docked web inspector depending on |contents|'s state. | 338 // Shows or hides the docked web inspector depending on |contents|'s state. |
| 339 - (void)updateDevToolsForContents:(content::WebContents*)contents; | 339 - (void)updateDevToolsForContents:(content::WebContents*)contents; |
| 340 | 340 |
| 341 // Gets the current theme provider. | 341 // Gets the current theme provider. |
| 342 - (ui::ThemeProvider*)themeProvider; | 342 - (ui::ThemeProvider*)themeProvider; |
| 343 | 343 |
| 344 // Gets the window style. | 344 // Gets the window style. |
| 345 - (ThemedWindowStyle)themedWindowStyle; | 345 - (ThemedWindowStyle)themedWindowStyle; |
| 346 | 346 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; | 601 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; |
| 602 | 602 |
| 603 // Gets the rect, in window base coordinates, that the omnibox popup should be | 603 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 604 // positioned relative to. | 604 // positioned relative to. |
| 605 - (NSRect)omniboxPopupAnchorRect; | 605 - (NSRect)omniboxPopupAnchorRect; |
| 606 | 606 |
| 607 @end // @interface BrowserWindowController (TestingAPI) | 607 @end // @interface BrowserWindowController (TestingAPI) |
| 608 | 608 |
| 609 | 609 |
| 610 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 610 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |