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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 // Called when the Add Search Engine dialog is closed. | 374 // Called when the Add Search Engine dialog is closed. |
375 - (void)sheetDidEnd:(NSWindow*)sheet | 375 - (void)sheetDidEnd:(NSWindow*)sheet |
376 returnCode:(NSInteger)code | 376 returnCode:(NSInteger)code |
377 context:(void*)context; | 377 context:(void*)context; |
378 | 378 |
379 // Executes the command registered by the extension that has the given id. | 379 // Executes the command registered by the extension that has the given id. |
380 - (void)executeExtensionCommand:(const std::string&)extension_id | 380 - (void)executeExtensionCommand:(const std::string&)extension_id |
381 command:(const extensions::Command&)command; | 381 command:(const extensions::Command&)command; |
382 | 382 |
383 // To set whether the window has a tab playing audio or muted audio playing. | 383 // Sets the alert state of the tab e.g. audio playing, media recording, etc. |
384 - (void)setMediaState:(TabMediaState)mediaState; | 384 // See TabUtils::TabAlertState for a list of all possible alert states. |
| 385 - (void)setAlertState:(TabAlertState)alertState; |
385 | 386 |
386 // Returns current media state, determined by the media state of tabs, set by | 387 // Returns current alert state, determined by the alert state of tabs, set by |
387 // UpdateMediaState. | 388 // UpdateAlertState. |
388 - (TabMediaState)mediaState; | 389 - (TabAlertState)alertState; |
389 | 390 |
390 @end // @interface BrowserWindowController | 391 @end // @interface BrowserWindowController |
391 | 392 |
392 | 393 |
393 // Methods having to do with the window type (normal/popup/app, and whether the | 394 // Methods having to do with the window type (normal/popup/app, and whether the |
394 // window has various features; fullscreen and presentation mode methods are | 395 // window has various features; fullscreen and presentation mode methods are |
395 // separate). | 396 // separate). |
396 @interface BrowserWindowController(WindowType) | 397 @interface BrowserWindowController(WindowType) |
397 | 398 |
398 // Determines whether this controller's window supports a given feature (i.e., | 399 // Determines whether this controller's window supports a given feature (i.e., |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 // Returns the active tab contents controller's |blockFullscreenResize_| flag. | 640 // Returns the active tab contents controller's |blockFullscreenResize_| flag. |
640 - (BOOL)isActiveTabContentsControllerResizeBlocked; | 641 - (BOOL)isActiveTabContentsControllerResizeBlocked; |
641 | 642 |
642 // Returns the presentation mode controller. | 643 // Returns the presentation mode controller. |
643 - (PresentationModeController*)presentationModeController; | 644 - (PresentationModeController*)presentationModeController; |
644 | 645 |
645 @end // @interface BrowserWindowController (TestingAPI) | 646 @end // @interface BrowserWindowController (TestingAPI) |
646 | 647 |
647 | 648 |
648 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 649 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |