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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 1412083002: Indicate in the Window menu which Chrome window has an active sound playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: To show which Chromium window has an active/muted sound playing Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 6249badd7ecd7afcaa690004463ea1efd5542bb9..be65d156a90f4c977797f7d06e644c8e5a7db669 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1895,6 +1895,11 @@ willAnimateFromState:(BookmarkBar::State)oldState
command.accelerator());
}
+- (void)setMediaState:(TabMediaState)media_state
+ on:(content::WebContents*)contents {
+ [self browserWindow]->UpdateMediaState(media_state, contents);
+}
+
@end // @implementation BrowserWindowController
@implementation BrowserWindowController(Fullscreen)

Powered by Google App Engine
This is Rietveld 408576698