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