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> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 class WebView; | 18 class WebView; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 // Map of ISO 15924 four-letter script code to font family. For example, | 23 // Map of ISO 15924 four-letter script code to font family. For example, |
24 // "Arab" to "My Arabic Font". | 24 // "Arab" to "My Arabic Font". |
25 typedef std::map<std::string, base::string16> ScriptFontFamilyMap; | 25 typedef std::map<std::string, base::string16> ScriptFontFamilyMap; |
26 | 26 |
27 typedef std::vector<std::pair<std::string, std::string> > | |
28 WebInspectorPreferences; | |
29 | |
30 enum EditingBehavior { | 27 enum EditingBehavior { |
31 EDITING_BEHAVIOR_MAC, | 28 EDITING_BEHAVIOR_MAC, |
32 EDITING_BEHAVIOR_WIN, | 29 EDITING_BEHAVIOR_WIN, |
33 EDITING_BEHAVIOR_UNIX, | 30 EDITING_BEHAVIOR_UNIX, |
34 EDITING_BEHAVIOR_ANDROID, | 31 EDITING_BEHAVIOR_ANDROID, |
35 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID | 32 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
36 }; | 33 }; |
37 | 34 |
38 enum V8CacheOptions { | 35 enum V8CacheOptions { |
39 V8_CACHE_OPTIONS_OFF, | 36 V8_CACHE_OPTIONS_OFF, |
(...skipping 25 matching lines...) Expand all Loading... |
65 int minimum_font_size; | 62 int minimum_font_size; |
66 int minimum_logical_font_size; | 63 int minimum_logical_font_size; |
67 std::string default_encoding; | 64 std::string default_encoding; |
68 bool javascript_enabled; | 65 bool javascript_enabled; |
69 bool web_security_enabled; | 66 bool web_security_enabled; |
70 bool javascript_can_open_windows_automatically; | 67 bool javascript_can_open_windows_automatically; |
71 bool loads_images_automatically; | 68 bool loads_images_automatically; |
72 bool images_enabled; | 69 bool images_enabled; |
73 bool plugins_enabled; | 70 bool plugins_enabled; |
74 bool dom_paste_enabled; | 71 bool dom_paste_enabled; |
75 WebInspectorPreferences inspector_settings; | |
76 bool shrinks_standalone_images_to_fit; | 72 bool shrinks_standalone_images_to_fit; |
77 bool uses_universal_detector; | 73 bool uses_universal_detector; |
78 bool text_areas_are_resizable; | 74 bool text_areas_are_resizable; |
79 bool java_enabled; | 75 bool java_enabled; |
80 bool allow_scripts_to_close_windows; | 76 bool allow_scripts_to_close_windows; |
81 bool remote_fonts_enabled; | 77 bool remote_fonts_enabled; |
82 bool javascript_can_access_clipboard; | 78 bool javascript_can_access_clipboard; |
83 bool xslt_enabled; | 79 bool xslt_enabled; |
84 bool xss_auditor_enabled; | 80 bool xss_auditor_enabled; |
85 // We don't use dns_prefetching_enabled to disable DNS prefetching. Instead, | 81 // We don't use dns_prefetching_enabled to disable DNS prefetching. Instead, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // We try to keep the default values the same as the default values in | 182 // We try to keep the default values the same as the default values in |
187 // chrome, except for the cases where it would require lots of extra work for | 183 // chrome, except for the cases where it would require lots of extra work for |
188 // the embedder to use the same default value. | 184 // the embedder to use the same default value. |
189 WebPreferences(); | 185 WebPreferences(); |
190 ~WebPreferences(); | 186 ~WebPreferences(); |
191 }; | 187 }; |
192 | 188 |
193 } // namespace content | 189 } // namespace content |
194 | 190 |
195 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 191 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |