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

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

Issue 1414853003: Add options for audio/video autoplay to chrome://settings/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: third_party/WebKit/public/web/WebContentSettingsClient.h
diff --git a/third_party/WebKit/public/web/WebContentSettingsClient.h b/third_party/WebKit/public/web/WebContentSettingsClient.h
index dc957e1f5e4cde1cf2e9410ca3ec9c45f9033698..3ed3e4b699e98473f1b7b891870c70c47229e952 100644
--- a/third_party/WebKit/public/web/WebContentSettingsClient.h
+++ b/third_party/WebKit/public/web/WebContentSettingsClient.h
@@ -33,6 +33,9 @@ public:
// Controls whether HTML5 media elements (<audio>, <video>) are allowed for this frame.
virtual bool allowMedia(const WebURL& videoURL) { return true; }
+ // Controls whether HTML5 media elements (<audio>, <video>) are allowed to autoplay content.
+ virtual bool allowMediaAutoplay(bool hidden) { return true; }
philipj_slow 2015/10/23 12:17:30 AFAICT, the hidden bool comes only from HTMLMediaE
DaleCurtis 2015/10/23 19:21:27 This is called by the Chrome content client with t
philipj_slow 2015/10/28 10:30:40 Could we instead use mediaElement.document().hidde
+
// Controls whether plugins are allowed for this frame.
virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettings; }

Powered by Google App Engine
This is Rietveld 408576698