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

Unified Diff: content/public/browser/web_contents.h

Issue 757033005: Make tab audible and muted states and cause available for an extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve naming/capitalization for muted toggle strings; remove audible/muted event-listener code fr… Created 6 years 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: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 5478a378158c5dd4dcacfb8184555724693550dd..27a90c478129d29409192e72c5936379cab65db9 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -308,7 +308,10 @@ class WebContents : public PageNavigator,
// Indicates/Sets whether all audio output from this WebContents is muted.
virtual bool IsAudioMuted() const = 0;
- virtual void SetAudioMuted(bool mute) = 0;
+ virtual void SetAudioMuted(bool muted, const std::string& cause) = 0;
+
+ // Get source (initial, user, capture, extensionid) for the tab's muted state
+ virtual const std::string& GetAudioMutedCause() const = 0;
// Indicates whether this tab should be considered crashed. The setter will
// also notify the delegate when the flag is changed.

Powered by Google App Engine
This is Rietveld 408576698