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