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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.h

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_cocoa.h
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.h b/chrome/browser/ui/cocoa/browser_window_cocoa.h
index 637edc505c961ce0cdf4016a5cb27b8125130608..d338bbd7b6ff7984fffde235ab1bd008fd2d10a2 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.h
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.h
@@ -58,6 +58,8 @@ class BrowserWindowCocoa
gfx::NativeWindow GetNativeWindow() const override;
StatusBubble* GetStatusBubble() override;
void UpdateTitleBar() override;
+ void UpdateMediaState(TabMediaState media_state,
+ content::WebContents* contents) override;
void BookmarkBarStateChanged(
BookmarkBar::AnimateChangeType change_type) override;
void UpdateDevTools() override;
@@ -191,6 +193,10 @@ class BrowserWindowCocoa
base::scoped_nsobject<NSString> pending_window_title_;
ui::WindowShowState initial_show_state_;
NSInteger attention_request_id_; // identifier from requestUserAttention
+
+ TabMediaState media_state_;
Robert Sesek 2015/10/20 13:39:47 Why do you need to track any additional data other
+ TabMediaState prev_media_state_;
+ content::WebContents* media_state_contents_;
};
#endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_

Powered by Google App Engine
This is Rietveld 408576698