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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Switched approach to use WebContentsImpl::WasRecentlyAudible Created 4 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: third_party/WebKit/public/web/WebView.h
diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
index 89a958247bb9dacdf37ea604cbc04addbc106883..395e181f0460e29596a4420761ece658354eb0b8 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -357,6 +357,8 @@ public:
virtual void performPluginAction(
const WebPluginAction&, const WebPoint& location) = 0;
+ // Notifies WebView about audio is started or stopped.
Sami 2016/10/03 14:36:32 s/about/when/?
altimin 2016/10/03 15:53:39 Done.
+ virtual void audioStateChanged(bool isAudioPlaying) = 0;
Sami 2016/10/03 14:36:32 nit: Could we be consistent about isAudioPlaying/i
altimin 2016/10/03 15:53:39 Sorry, it was the last typo in WebSchedulerImpl.
// Data exchange -------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698