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

Side by Side Diff: content/public/common/web_preferences.h

Issue 2039773003: [Android] Added a runtime flag to enable autoplay of muted videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed the flag to autoplay-muted-videos Created 4 years, 6 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool viewport_meta_layout_size_quirk; 218 bool viewport_meta_layout_size_quirk;
219 bool viewport_meta_merge_content_quirk; 219 bool viewport_meta_merge_content_quirk;
220 bool viewport_meta_non_user_scalable_quirk; 220 bool viewport_meta_non_user_scalable_quirk;
221 bool viewport_meta_zero_values_quirk; 221 bool viewport_meta_zero_values_quirk;
222 bool clobber_user_agent_initial_scale_quirk; 222 bool clobber_user_agent_initial_scale_quirk;
223 bool ignore_main_frame_overflow_hidden_quirk; 223 bool ignore_main_frame_overflow_hidden_quirk;
224 bool report_screen_size_in_physical_pixels_quirk; 224 bool report_screen_size_in_physical_pixels_quirk;
225 // Used by Android_WebView only to support legacy apps that inject script into 225 // Used by Android_WebView only to support legacy apps that inject script into
226 // a top-level initial empty document and expect it to persist on navigation. 226 // a top-level initial empty document and expect it to persist on navigation.
227 bool resue_global_for_unowned_main_frame; 227 bool resue_global_for_unowned_main_frame;
228 bool autoplay_muted_videos_enabled;
228 #endif 229 #endif
229 230
230 // String that describes how media element autoplay behavior should be 231 // String that describes how media element autoplay behavior should be
231 // affected by experiment. 232 // affected by experiment.
232 std::string autoplay_experiment_mode; 233 std::string autoplay_experiment_mode;
233 234
234 // Default (used if the page or UA doesn't override these) values for page 235 // Default (used if the page or UA doesn't override these) values for page
235 // scale limits. These are set directly on the WebView so there's no analogue 236 // scale limits. These are set directly on the WebView so there's no analogue
236 // in WebSettings. 237 // in WebSettings.
237 float default_minimum_page_scale_factor; 238 float default_minimum_page_scale_factor;
238 float default_maximum_page_scale_factor; 239 float default_maximum_page_scale_factor;
239 240
240 // We try to keep the default values the same as the default values in 241 // We try to keep the default values the same as the default values in
241 // chrome, except for the cases where it would require lots of extra work for 242 // chrome, except for the cases where it would require lots of extra work for
242 // the embedder to use the same default value. 243 // the embedder to use the same default value.
243 WebPreferences(); 244 WebPreferences();
244 WebPreferences(const WebPreferences& other); 245 WebPreferences(const WebPreferences& other);
245 ~WebPreferences(); 246 ~WebPreferences();
246 }; 247 };
247 248
248 } // namespace content 249 } // namespace content
249 250
250 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 251 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698