| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 bool viewport_meta_layout_size_quirk; | 217 bool viewport_meta_layout_size_quirk; |
| 218 bool viewport_meta_merge_content_quirk; | 218 bool viewport_meta_merge_content_quirk; |
| 219 bool viewport_meta_non_user_scalable_quirk; | 219 bool viewport_meta_non_user_scalable_quirk; |
| 220 bool viewport_meta_zero_values_quirk; | 220 bool viewport_meta_zero_values_quirk; |
| 221 bool clobber_user_agent_initial_scale_quirk; | 221 bool clobber_user_agent_initial_scale_quirk; |
| 222 bool ignore_main_frame_overflow_hidden_quirk; | 222 bool ignore_main_frame_overflow_hidden_quirk; |
| 223 bool report_screen_size_in_physical_pixels_quirk; | 223 bool report_screen_size_in_physical_pixels_quirk; |
| 224 // Used by Android_WebView only to support legacy apps that inject script into | 224 // Used by Android_WebView only to support legacy apps that inject script into |
| 225 // a top-level initial empty document and expect it to persist on navigation. | 225 // a top-level initial empty document and expect it to persist on navigation. |
| 226 bool resue_global_for_unowned_main_frame; | 226 bool resue_global_for_unowned_main_frame; |
| 227 #endif |
| 228 |
| 229 // String that describes how media element autoplay behavior should be |
| 230 // affected by experiment. |
| 227 std::string autoplay_experiment_mode; | 231 std::string autoplay_experiment_mode; |
| 228 #endif | |
| 229 | 232 |
| 230 // Default (used if the page or UA doesn't override these) values for page | 233 // Default (used if the page or UA doesn't override these) values for page |
| 231 // scale limits. These are set directly on the WebView so there's no analogue | 234 // scale limits. These are set directly on the WebView so there's no analogue |
| 232 // in WebSettings. | 235 // in WebSettings. |
| 233 float default_minimum_page_scale_factor; | 236 float default_minimum_page_scale_factor; |
| 234 float default_maximum_page_scale_factor; | 237 float default_maximum_page_scale_factor; |
| 235 | 238 |
| 236 // We try to keep the default values the same as the default values in | 239 // We try to keep the default values the same as the default values in |
| 237 // chrome, except for the cases where it would require lots of extra work for | 240 // chrome, except for the cases where it would require lots of extra work for |
| 238 // the embedder to use the same default value. | 241 // the embedder to use the same default value. |
| 239 WebPreferences(); | 242 WebPreferences(); |
| 240 WebPreferences(const WebPreferences& other); | 243 WebPreferences(const WebPreferences& other); |
| 241 ~WebPreferences(); | 244 ~WebPreferences(); |
| 242 }; | 245 }; |
| 243 | 246 |
| 244 } // namespace content | 247 } // namespace content |
| 245 | 248 |
| 246 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 249 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |