| OLD | NEW |
| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 bool viewport_meta_layout_size_quirk; | 235 bool viewport_meta_layout_size_quirk; |
| 236 bool viewport_meta_merge_content_quirk; | 236 bool viewport_meta_merge_content_quirk; |
| 237 bool viewport_meta_non_user_scalable_quirk; | 237 bool viewport_meta_non_user_scalable_quirk; |
| 238 bool viewport_meta_zero_values_quirk; | 238 bool viewport_meta_zero_values_quirk; |
| 239 bool clobber_user_agent_initial_scale_quirk; | 239 bool clobber_user_agent_initial_scale_quirk; |
| 240 bool ignore_main_frame_overflow_hidden_quirk; | 240 bool ignore_main_frame_overflow_hidden_quirk; |
| 241 bool report_screen_size_in_physical_pixels_quirk; | 241 bool report_screen_size_in_physical_pixels_quirk; |
| 242 // Used by Android_WebView only to support legacy apps that inject script into | 242 // Used by Android_WebView only to support legacy apps that inject script into |
| 243 // a top-level initial empty document and expect it to persist on navigation. | 243 // a top-level initial empty document and expect it to persist on navigation. |
| 244 bool resue_global_for_unowned_main_frame; | 244 bool resue_global_for_unowned_main_frame; |
| 245 bool autoplay_muted_videos_enabled; | |
| 246 ProgressBarCompletion progress_bar_completion; | 245 ProgressBarCompletion progress_bar_completion; |
| 247 // Specifies default setting for spellcheck when the spellcheck attribute is | 246 // Specifies default setting for spellcheck when the spellcheck attribute is |
| 248 // not explicitly specified. | 247 // not explicitly specified. |
| 249 bool spellcheck_enabled_by_default; | 248 bool spellcheck_enabled_by_default; |
| 250 #endif | 249 #endif |
| 251 | 250 |
| 251 bool autoplay_muted_videos_enabled; |
| 252 |
| 253 #if !defined(OS_ANDROID) |
| 254 bool user_gesture_required_for_media_playback_in_cross_origin_iframes; |
| 255 #endif |
| 256 |
| 252 // String that describes how media element autoplay behavior should be | 257 // String that describes how media element autoplay behavior should be |
| 253 // affected by experiment. | 258 // affected by experiment. |
| 254 std::string autoplay_experiment_mode; | 259 std::string autoplay_experiment_mode; |
| 255 | 260 |
| 256 // Default (used if the page or UA doesn't override these) values for page | 261 // Default (used if the page or UA doesn't override these) values for page |
| 257 // scale limits. These are set directly on the WebView so there's no analogue | 262 // scale limits. These are set directly on the WebView so there's no analogue |
| 258 // in WebSettings. | 263 // in WebSettings. |
| 259 float default_minimum_page_scale_factor; | 264 float default_minimum_page_scale_factor; |
| 260 float default_maximum_page_scale_factor; | 265 float default_maximum_page_scale_factor; |
| 261 | 266 |
| 262 // Whether download UI should be hidden on this page. | 267 // Whether download UI should be hidden on this page. |
| 263 bool hide_download_ui; | 268 bool hide_download_ui; |
| 264 | 269 |
| 265 // We try to keep the default values the same as the default values in | 270 // We try to keep the default values the same as the default values in |
| 266 // chrome, except for the cases where it would require lots of extra work for | 271 // chrome, except for the cases where it would require lots of extra work for |
| 267 // the embedder to use the same default value. | 272 // the embedder to use the same default value. |
| 268 WebPreferences(); | 273 WebPreferences(); |
| 269 WebPreferences(const WebPreferences& other); | 274 WebPreferences(const WebPreferences& other); |
| 270 ~WebPreferences(); | 275 ~WebPreferences(); |
| 271 }; | 276 }; |
| 272 | 277 |
| 273 } // namespace content | 278 } // namespace content |
| 274 | 279 |
| 275 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 280 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |