| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // The ISO 15924 script code for undetermined script aka Common. It's the | 55 // The ISO 15924 script code for undetermined script aka Common. It's the |
| 56 // default used on WebKit's side to get/set a font setting when no script is | 56 // default used on WebKit's side to get/set a font setting when no script is |
| 57 // specified. | 57 // specified. |
| 58 CONTENT_EXPORT extern const char kCommonScript[]; | 58 CONTENT_EXPORT extern const char kCommonScript[]; |
| 59 | 59 |
| 60 // A struct for managing blink's settings. | 60 // A struct for managing blink's settings. |
| 61 // | 61 // |
| 62 // Adding new values to this class probably involves updating | 62 // Adding new values to this class probably involves updating |
| 63 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 63 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
| 64 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 64 // render_view_host_delegate_helper.cc, browser/profiles/profile.cc, |
| 65 // and content/public/common/common_param_traits_macros.h |
| 65 struct CONTENT_EXPORT WebPreferences { | 66 struct CONTENT_EXPORT WebPreferences { |
| 66 ScriptFontFamilyMap standard_font_family_map; | 67 ScriptFontFamilyMap standard_font_family_map; |
| 67 ScriptFontFamilyMap fixed_font_family_map; | 68 ScriptFontFamilyMap fixed_font_family_map; |
| 68 ScriptFontFamilyMap serif_font_family_map; | 69 ScriptFontFamilyMap serif_font_family_map; |
| 69 ScriptFontFamilyMap sans_serif_font_family_map; | 70 ScriptFontFamilyMap sans_serif_font_family_map; |
| 70 ScriptFontFamilyMap cursive_font_family_map; | 71 ScriptFontFamilyMap cursive_font_family_map; |
| 71 ScriptFontFamilyMap fantasy_font_family_map; | 72 ScriptFontFamilyMap fantasy_font_family_map; |
| 72 ScriptFontFamilyMap pictograph_font_family_map; | 73 ScriptFontFamilyMap pictograph_font_family_map; |
| 73 int default_font_size; | 74 int default_font_size; |
| 74 int default_fixed_font_size; | 75 int default_fixed_font_size; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 bool use_wide_viewport; | 205 bool use_wide_viewport; |
| 205 bool force_zero_layout_height; | 206 bool force_zero_layout_height; |
| 206 bool viewport_meta_layout_size_quirk; | 207 bool viewport_meta_layout_size_quirk; |
| 207 bool viewport_meta_merge_content_quirk; | 208 bool viewport_meta_merge_content_quirk; |
| 208 bool viewport_meta_non_user_scalable_quirk; | 209 bool viewport_meta_non_user_scalable_quirk; |
| 209 bool viewport_meta_zero_values_quirk; | 210 bool viewport_meta_zero_values_quirk; |
| 210 bool clobber_user_agent_initial_scale_quirk; | 211 bool clobber_user_agent_initial_scale_quirk; |
| 211 bool ignore_main_frame_overflow_hidden_quirk; | 212 bool ignore_main_frame_overflow_hidden_quirk; |
| 212 bool report_screen_size_in_physical_pixels_quirk; | 213 bool report_screen_size_in_physical_pixels_quirk; |
| 213 bool record_whole_document; | 214 bool record_whole_document; |
| 215 std::string autoplay_experiment_mode; |
| 214 #endif | 216 #endif |
| 215 | 217 |
| 216 // Default (used if the page or UA doesn't override these) values for page | 218 // Default (used if the page or UA doesn't override these) values for page |
| 217 // scale limits. These are set directly on the WebView so there's no analogue | 219 // scale limits. These are set directly on the WebView so there's no analogue |
| 218 // in WebSettings. | 220 // in WebSettings. |
| 219 float default_minimum_page_scale_factor; | 221 float default_minimum_page_scale_factor; |
| 220 float default_maximum_page_scale_factor; | 222 float default_maximum_page_scale_factor; |
| 221 | 223 |
| 222 // We try to keep the default values the same as the default values in | 224 // We try to keep the default values the same as the default values in |
| 223 // chrome, except for the cases where it would require lots of extra work for | 225 // chrome, except for the cases where it would require lots of extra work for |
| 224 // the embedder to use the same default value. | 226 // the embedder to use the same default value. |
| 225 WebPreferences(); | 227 WebPreferences(); |
| 226 ~WebPreferences(); | 228 ~WebPreferences(); |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 } // namespace content | 231 } // namespace content |
| 230 | 232 |
| 231 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 233 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |