Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 1827083004: UI: Rename MediaState to AlertState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-tab-indicator
Patch Set: Keep gypi ordered Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698