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

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

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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebSettings.h
diff --git a/third_party/WebKit/public/web/WebSettings.h b/third_party/WebKit/public/web/WebSettings.h
index e9f91d6b314343dc0da7c3b2156df45dfbd47966..2078162039cf07b6f2f3594a2a8b859b3d4e2dd5 100644
--- a/third_party/WebKit/public/web/WebSettings.h
+++ b/third_party/WebKit/public/web/WebSettings.h
@@ -113,6 +113,14 @@ class WebSettings {
kForceAllTrue // Force all values to be true even when specified.
};
+ // Defines the autoplay policy to be used. Should match the enum class in
+ // web_preferences.h
+ enum class AutoplayPolicy {
+ kNoUserGestureRequired = 0,
+ kUserGestureRequired,
+ kUserGestureRequiredForCrossOrigin,
+ };
+
// Sets value of a setting by its string identifier from Settings.in and
// string representation of value. An enum's string representation is the
// string representation of the integer value of the enum.
@@ -145,11 +153,11 @@ class WebSettings {
virtual void SetAlwaysShowContextMenuOnTouch(bool) = 0;
virtual void SetAntialiased2dCanvasEnabled(bool) = 0;
virtual void SetAntialiasedClips2dCanvasEnabled(bool) = 0;
+ virtual void SetAutoplayPolicy(AutoplayPolicy) = 0;
virtual void SetAutoZoomFocusedNodeToLegibleScale(bool) = 0;
virtual void SetBrowserSideNavigationEnabled(bool) = 0;
virtual void SetClobberUserAgentInitialScaleQuirk(bool) = 0;
virtual void SetCookieEnabled(bool) = 0;
- virtual void SetCrossOriginMediaPlaybackRequiresUserGesture(bool) = 0;
virtual void SetNavigateOnDragDrop(bool) = 0;
virtual void SetCursiveFontFamily(const WebString&,
UScriptCode = USCRIPT_COMMON) = 0;
@@ -197,7 +205,6 @@ class WebSettings {
virtual void SetMainFrameClipsContent(bool) = 0;
virtual void SetMainFrameResizesAreOrientationChanges(bool) = 0;
virtual void SetMaxTouchPoints(int) = 0;
- virtual void SetMediaPlaybackRequiresUserGesture(bool) = 0;
virtual void SetMediaPlaybackGestureWhitelistScope(const WebString&) = 0;
virtual void SetPresentationRequiresUserGesture(bool) = 0;
virtual void SetEmbeddedMediaExperienceEnabled(bool) = 0;
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698