| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 base::scoped_nsobject<InfoBarContainerController> infoBarContainerController_; | 80 base::scoped_nsobject<InfoBarContainerController> infoBarContainerController_; |
| 81 base::scoped_nsobject<DownloadShelfController> downloadShelfController_; | 81 base::scoped_nsobject<DownloadShelfController> downloadShelfController_; |
| 82 base::scoped_nsobject<BookmarkBarController> bookmarkBarController_; | 82 base::scoped_nsobject<BookmarkBarController> bookmarkBarController_; |
| 83 base::scoped_nsobject<DevToolsController> devToolsController_; | 83 base::scoped_nsobject<DevToolsController> devToolsController_; |
| 84 base::scoped_nsobject<OverlayableContentsController> | 84 base::scoped_nsobject<OverlayableContentsController> |
| 85 overlayableContentsController_; | 85 overlayableContentsController_; |
| 86 base::scoped_nsobject<PresentationModeController> presentationModeController_; | 86 base::scoped_nsobject<PresentationModeController> presentationModeController_; |
| 87 scoped_ptr<ExclusiveAccessController> exclusiveAccessController_; | 87 scoped_ptr<ExclusiveAccessController> exclusiveAccessController_; |
| 88 base::scoped_nsobject<BrowserWindowFullscreenTransition> | 88 base::scoped_nsobject<BrowserWindowFullscreenTransition> |
| 89 fullscreenTransition_; | 89 fullscreenTransition_; |
| 90 base::scoped_nsobject<NSWindow> detachedModeWindow_; |
| 90 | 91 |
| 91 // Strong. StatusBubble is a special case of a strong reference that | 92 // Strong. StatusBubble is a special case of a strong reference that |
| 92 // we don't wrap in a scoped_ptr because it is acting the same | 93 // we don't wrap in a scoped_ptr because it is acting the same |
| 93 // as an NSWindowController in that it wraps a window that must | 94 // as an NSWindowController in that it wraps a window that must |
| 94 // be shut down before our destructors are called. | 95 // be shut down before our destructors are called. |
| 95 StatusBubbleMac* statusBubble_; | 96 StatusBubbleMac* statusBubble_; |
| 96 | 97 |
| 97 scoped_ptr<BookmarkBubbleObserverCocoa> bookmarkBubbleObserver_; | 98 scoped_ptr<BookmarkBubbleObserverCocoa> bookmarkBubbleObserver_; |
| 98 BookmarkBubbleController* bookmarkBubbleController_; // Weak. | 99 BookmarkBubbleController* bookmarkBubbleController_; // Weak. |
| 99 BOOL initializing_; // YES while we are currently in initWithBrowser: | 100 BOOL initializing_; // YES while we are currently in initWithBrowser: |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // Executes the command registered by the extension that has the given id. | 385 // Executes the command registered by the extension that has the given id. |
| 385 - (void)executeExtensionCommand:(const std::string&)extension_id | 386 - (void)executeExtensionCommand:(const std::string&)extension_id |
| 386 command:(const extensions::Command&)command; | 387 command:(const extensions::Command&)command; |
| 387 | 388 |
| 388 // To set whether the window has a tab playing audio or muted audio playing. | 389 // To set whether the window has a tab playing audio or muted audio playing. |
| 389 - (void)setMediaState:(TabMediaState)mediaState; | 390 - (void)setMediaState:(TabMediaState)mediaState; |
| 390 | 391 |
| 391 // Returns current media state, determined by the media state of tabs, set by | 392 // Returns current media state, determined by the media state of tabs, set by |
| 392 // UpdateMediaState. | 393 // UpdateMediaState. |
| 393 - (TabMediaState)mediaState; | 394 - (TabMediaState)mediaState; |
| 394 | |
| 395 @end // @interface BrowserWindowController | 395 @end // @interface BrowserWindowController |
| 396 | 396 |
| 397 | 397 |
| 398 // Methods having to do with the window type (normal/popup/app, and whether the | 398 // Methods having to do with the window type (normal/popup/app, and whether the |
| 399 // window has various features; fullscreen and presentation mode methods are | 399 // window has various features; fullscreen and presentation mode methods are |
| 400 // separate). | 400 // separate). |
| 401 @interface BrowserWindowController(WindowType) | 401 @interface BrowserWindowController(WindowType) |
| 402 | 402 |
| 403 // Determines whether this controller's window supports a given feature (i.e., | 403 // Determines whether this controller's window supports a given feature (i.e., |
| 404 // whether a given feature is or can be shown in the window). | 404 // whether a given feature is or can be shown in the window). |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 // Returns the active tab contents controller's |blockFullscreenResize_| flag. | 651 // Returns the active tab contents controller's |blockFullscreenResize_| flag. |
| 652 - (BOOL)isActiveTabContentsControllerResizeBlocked; | 652 - (BOOL)isActiveTabContentsControllerResizeBlocked; |
| 653 | 653 |
| 654 // Returns the presentation mode controller. | 654 // Returns the presentation mode controller. |
| 655 - (PresentationModeController*)presentationModeController; | 655 - (PresentationModeController*)presentationModeController; |
| 656 | 656 |
| 657 @end // @interface BrowserWindowController (TestingAPI) | 657 @end // @interface BrowserWindowController (TestingAPI) |
| 658 | 658 |
| 659 | 659 |
| 660 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 660 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |