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

Unified Diff: content/public/browser/web_contents_observer.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: 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_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index 3630835be3c192dafb7bf9034bf6b1301e8a6082..3b999316d99d75c9e5a1aa52b272b65a56157a29 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -253,6 +253,10 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
virtual void WasShown() {}
virtual void WasHidden() {}
+ // These methods are invoked when there are changes related to sound.
+ virtual void TabAudible(bool isAudible) {};
+ virtual void TabMuted(bool isMuted, const std::string& cause) {};
+
// This methods is invoked when the title of the WebContents is set. If the
// title was explicitly set, |explicit_set| is true, otherwise the title was
// synthesized and |explicit_set| is false.
« content/browser/web_contents/web_contents_impl.cc ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698