| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 bool viewport_meta_enabled; | 169 bool viewport_meta_enabled; |
| 170 bool main_frame_resizes_are_orientation_changes; | 170 bool main_frame_resizes_are_orientation_changes; |
| 171 bool initialize_at_minimum_page_scale; | 171 bool initialize_at_minimum_page_scale; |
| 172 bool smart_insert_delete_enabled; | 172 bool smart_insert_delete_enabled; |
| 173 bool spatial_navigation_enabled; | 173 bool spatial_navigation_enabled; |
| 174 int pinch_overlay_scrollbar_thickness; | 174 int pinch_overlay_scrollbar_thickness; |
| 175 bool use_solid_color_scrollbars; | 175 bool use_solid_color_scrollbars; |
| 176 bool navigate_on_drag_drop; | 176 bool navigate_on_drag_drop; |
| 177 V8CacheOptions v8_cache_options; | 177 V8CacheOptions v8_cache_options; |
| 178 bool inert_visual_viewport; | 178 bool inert_visual_viewport; |
| 179 bool record_whole_document; |
| 179 | 180 |
| 180 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 181 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 181 // only controls whether or not the "document.cookie" field is properly | 182 // only controls whether or not the "document.cookie" field is properly |
| 182 // connected to the backing store, for instance if you wanted to be able to | 183 // connected to the backing store, for instance if you wanted to be able to |
| 183 // define custom getters and setters from within a unique security content | 184 // define custom getters and setters from within a unique security content |
| 184 // without raising a DOM security exception. | 185 // without raising a DOM security exception. |
| 185 bool cookie_enabled; | 186 bool cookie_enabled; |
| 186 | 187 |
| 187 // This flag indicates whether H/W accelerated video decode is enabled for | 188 // This flag indicates whether H/W accelerated video decode is enabled for |
| 188 // pepper plugins. Defaults to false. | 189 // pepper plugins. Defaults to false. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 206 bool wide_viewport_quirk; | 207 bool wide_viewport_quirk; |
| 207 bool use_wide_viewport; | 208 bool use_wide_viewport; |
| 208 bool force_zero_layout_height; | 209 bool force_zero_layout_height; |
| 209 bool viewport_meta_layout_size_quirk; | 210 bool viewport_meta_layout_size_quirk; |
| 210 bool viewport_meta_merge_content_quirk; | 211 bool viewport_meta_merge_content_quirk; |
| 211 bool viewport_meta_non_user_scalable_quirk; | 212 bool viewport_meta_non_user_scalable_quirk; |
| 212 bool viewport_meta_zero_values_quirk; | 213 bool viewport_meta_zero_values_quirk; |
| 213 bool clobber_user_agent_initial_scale_quirk; | 214 bool clobber_user_agent_initial_scale_quirk; |
| 214 bool ignore_main_frame_overflow_hidden_quirk; | 215 bool ignore_main_frame_overflow_hidden_quirk; |
| 215 bool report_screen_size_in_physical_pixels_quirk; | 216 bool report_screen_size_in_physical_pixels_quirk; |
| 216 bool record_whole_document; | |
| 217 std::string autoplay_experiment_mode; | 217 std::string autoplay_experiment_mode; |
| 218 #endif | 218 #endif |
| 219 | 219 |
| 220 // Default (used if the page or UA doesn't override these) values for page | 220 // Default (used if the page or UA doesn't override these) values for page |
| 221 // scale limits. These are set directly on the WebView so there's no analogue | 221 // scale limits. These are set directly on the WebView so there's no analogue |
| 222 // in WebSettings. | 222 // in WebSettings. |
| 223 float default_minimum_page_scale_factor; | 223 float default_minimum_page_scale_factor; |
| 224 float default_maximum_page_scale_factor; | 224 float default_maximum_page_scale_factor; |
| 225 | 225 |
| 226 // We try to keep the default values the same as the default values in | 226 // We try to keep the default values the same as the default values in |
| 227 // chrome, except for the cases where it would require lots of extra work for | 227 // chrome, except for the cases where it would require lots of extra work for |
| 228 // the embedder to use the same default value. | 228 // the embedder to use the same default value. |
| 229 WebPreferences(); | 229 WebPreferences(); |
| 230 WebPreferences(const WebPreferences& other); | 230 WebPreferences(const WebPreferences& other); |
| 231 ~WebPreferences(); | 231 ~WebPreferences(); |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 } // namespace content | 234 } // namespace content |
| 235 | 235 |
| 236 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 236 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |