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