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

Side by Side Diff: third_party/WebKit/Source/core/frame/Settings.json5

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 unified diff | Download patch
OLDNEW
1 { 1 {
2 // Defines properties which are available on the Settings object. 2 // Defines properties which are available on the Settings object.
3 // 3 //
4 // Please think carefully before adding a new Setting. Some questions to 4 // Please think carefully before adding a new Setting. Some questions to
5 // consider are: 5 // consider are:
6 // - Should this be a RuntimeEnabledFeature instead? Settings are for things 6 // - Should this be a RuntimeEnabledFeature instead? Settings are for things
7 // which we support either values of at runtime. Features are set at render er 7 // which we support either values of at runtime. Features are set at render er
8 // process startup and are never changed. Features also tend to be set to a 8 // process startup and are never changed. Features also tend to be set to a
9 // value based on the platform or the stability of the code in question, whe re 9 // value based on the platform or the stability of the code in question, whe re
10 // as settings both codepaths need to be stable. 10 // as settings both codepaths need to be stable.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 { 209 {
210 name: "hyperlinkAuditingEnabled", 210 name: "hyperlinkAuditingEnabled",
211 initial: false, 211 initial: false,
212 }, 212 },
213 { 213 {
214 name: "allowRunningOfInsecureContent", 214 name: "allowRunningOfInsecureContent",
215 initial: true, 215 initial: true,
216 }, 216 },
217 217
218 { 218 {
219 name: "mediaPlaybackRequiresUserGesture",
220 initial: false,
221 },
222 {
223 name: "mediaPlaybackGestureWhitelistScope", 219 name: "mediaPlaybackGestureWhitelistScope",
224 type: "String", 220 type: "String",
225 }, 221 },
226 222
227 // This flags overrides mediaPlaybackRequiresUserGesture
228 {
229 name: "crossOriginMediaPlaybackRequiresUserGesture",
230 initial: false,
231 },
232
233 { 223 {
234 name: "presentationRequiresUserGesture", 224 name: "presentationRequiresUserGesture",
235 initial: true, 225 initial: true,
236 }, 226 },
237 227
238 { 228 {
239 name: "embeddedMediaExperienceEnabled", 229 name: "embeddedMediaExperienceEnabled",
240 initial: false, 230 initial: false,
241 }, 231 },
242 232
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 initial: true, 910 initial: true,
921 invalidate: "MediaControls", 911 invalidate: "MediaControls",
922 }, 912 },
923 913
924 // Whether we should not update selection attributes when mutating selection range. 914 // Whether we should not update selection attributes when mutating selection range.
925 // TODO(changwan): remove this flag when we no longer support Android M. 915 // TODO(changwan): remove this flag when we no longer support Android M.
926 { 916 {
927 name: "doNotUpdateSelectionOnMutatingSelectionRange", 917 name: "doNotUpdateSelectionOnMutatingSelectionRange",
928 initial: false, 918 initial: false,
929 }, 919 },
920
921 // Defines the autoplay policy to use.
922 {
923 name: "autoplayPolicy",
924 type: "AutoplayPolicy::Type",
925 initial: "AutoplayPolicy::Type::kNoUserGestureRequired",
926 },
930 ], 927 ],
931 } 928 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.h ('k') | third_party/WebKit/Source/core/html/media/AutoplayPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698