OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A struct for managing webkit's settings. | 5 // A struct for managing webkit's settings. |
6 // | 6 // |
7 // Adding new values to this class probably involves updating | 7 // Adding new values to this class probably involves updating |
8 // WebKit::WebSettings, common/render_messages.cc, browser/tab_contents/ | 8 // WebKit::WebSettings, common/render_messages.cc, browser/tab_contents/ |
9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 ScriptFontFamilyMap standard_font_family_map; | 36 ScriptFontFamilyMap standard_font_family_map; |
37 ScriptFontFamilyMap fixed_font_family_map; | 37 ScriptFontFamilyMap fixed_font_family_map; |
38 ScriptFontFamilyMap serif_font_family_map; | 38 ScriptFontFamilyMap serif_font_family_map; |
39 ScriptFontFamilyMap sans_serif_font_family_map; | 39 ScriptFontFamilyMap sans_serif_font_family_map; |
40 ScriptFontFamilyMap cursive_font_family_map; | 40 ScriptFontFamilyMap cursive_font_family_map; |
41 ScriptFontFamilyMap fantasy_font_family_map; | 41 ScriptFontFamilyMap fantasy_font_family_map; |
42 int default_font_size; | 42 int default_font_size; |
43 int default_fixed_font_size; | 43 int default_fixed_font_size; |
44 int minimum_font_size; | 44 int minimum_font_size; |
45 int minimum_logical_font_size; | 45 int minimum_logical_font_size; |
| 46 int default_device_scale_factor; |
46 std::string default_encoding; | 47 std::string default_encoding; |
47 bool javascript_enabled; | 48 bool javascript_enabled; |
48 bool web_security_enabled; | 49 bool web_security_enabled; |
49 bool javascript_can_open_windows_automatically; | 50 bool javascript_can_open_windows_automatically; |
50 bool loads_images_automatically; | 51 bool loads_images_automatically; |
51 bool images_enabled; | 52 bool images_enabled; |
52 bool plugins_enabled; | 53 bool plugins_enabled; |
53 bool dom_paste_enabled; | 54 bool dom_paste_enabled; |
54 bool developer_extras_enabled; | 55 bool developer_extras_enabled; |
55 typedef std::vector<std::pair<std::string, std::string> > | 56 typedef std::vector<std::pair<std::string, std::string> > |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // We try to keep the default values the same as the default values in | 122 // We try to keep the default values the same as the default values in |
122 // chrome, except for the cases where it would require lots of extra work for | 123 // chrome, except for the cases where it would require lots of extra work for |
123 // the embedder to use the same default value. | 124 // the embedder to use the same default value. |
124 WebPreferences(); | 125 WebPreferences(); |
125 ~WebPreferences(); | 126 ~WebPreferences(); |
126 | 127 |
127 void Apply(WebKit::WebView* web_view) const; | 128 void Apply(WebKit::WebView* web_view) const; |
128 }; | 129 }; |
129 | 130 |
130 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 131 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |