| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |