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

Unified Diff: third_party/WebKit/Source/web/WebSettingsImpl.cpp

Issue 2850553002: Autoplay: use an autoplay policy setting in Blink. (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebSettingsImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSettingsImpl.cpp b/third_party/WebKit/Source/web/WebSettingsImpl.cpp
index 7204a4b8b38d83fe010127de3c424e5c7e6711e4..ef15ce0fffb998d8c0113c299304d091bb678598 100644
--- a/third_party/WebKit/Source/web/WebSettingsImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSettingsImpl.cpp
@@ -139,6 +139,11 @@ void WebSettingsImpl::SetMinimumLogicalFontSize(int size) {
settings_->SetMinimumLogicalFontSize(size);
}
+void WebSettingsImpl::SetAutoplayPolicy(AutoplayPolicy policy) {
+ settings_->SetAutoplayPolicy(
+ static_cast<blink::AutoplayPolicy::Type>(policy));
+}
+
void WebSettingsImpl::SetAutoZoomFocusedNodeToLegibleScale(
bool auto_zoom_focused_node_to_legible_scale) {
auto_zoom_focused_node_to_legible_scale_ =
@@ -623,10 +628,6 @@ void WebSettingsImpl::SetShouldRespectImageOrientation(bool enabled) {
settings_->SetShouldRespectImageOrientation(enabled);
}
-void WebSettingsImpl::SetMediaPlaybackRequiresUserGesture(bool required) {
- settings_->SetMediaPlaybackRequiresUserGesture(required);
-}
-
void WebSettingsImpl::SetMediaPlaybackGestureWhitelistScope(
const WebString& scope) {
settings_->SetMediaPlaybackGestureWhitelistScope(scope);
@@ -656,11 +657,6 @@ void WebSettingsImpl::SetCookieEnabled(bool enabled) {
settings_->SetCookieEnabled(enabled);
}
-void WebSettingsImpl::SetCrossOriginMediaPlaybackRequiresUserGesture(
- bool required) {
- settings_->SetCrossOriginMediaPlaybackRequiresUserGesture(required);
-}
-
void WebSettingsImpl::SetNavigateOnDragDrop(bool enabled) {
settings_->SetNavigateOnDragDrop(enabled);
}
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698