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> > | 27 // typedef std::vector<std::pair<std::string, std::string> > |
28 WebInspectorPreferences; | 28 // WebInspectorPreferences; |
jam
2014/08/19 19:48:11
nit: remove this and below?
chrishtr
2014/08/19 21:27:26
Done.
| |
29 | 29 |
30 enum EditingBehavior { | 30 enum EditingBehavior { |
31 EDITING_BEHAVIOR_MAC, | 31 EDITING_BEHAVIOR_MAC, |
32 EDITING_BEHAVIOR_WIN, | 32 EDITING_BEHAVIOR_WIN, |
33 EDITING_BEHAVIOR_UNIX, | 33 EDITING_BEHAVIOR_UNIX, |
34 EDITING_BEHAVIOR_ANDROID, | 34 EDITING_BEHAVIOR_ANDROID, |
35 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID | 35 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
36 }; | 36 }; |
37 | 37 |
38 // The ISO 15924 script code for undetermined script aka Common. It's the | 38 // The ISO 15924 script code for undetermined script aka Common. It's the |
(...skipping 19 matching lines...) Expand all Loading... | |
58 int minimum_font_size; | 58 int minimum_font_size; |
59 int minimum_logical_font_size; | 59 int minimum_logical_font_size; |
60 std::string default_encoding; | 60 std::string default_encoding; |
61 bool javascript_enabled; | 61 bool javascript_enabled; |
62 bool web_security_enabled; | 62 bool web_security_enabled; |
63 bool javascript_can_open_windows_automatically; | 63 bool javascript_can_open_windows_automatically; |
64 bool loads_images_automatically; | 64 bool loads_images_automatically; |
65 bool images_enabled; | 65 bool images_enabled; |
66 bool plugins_enabled; | 66 bool plugins_enabled; |
67 bool dom_paste_enabled; | 67 bool dom_paste_enabled; |
68 WebInspectorPreferences inspector_settings; | 68 // WebInspectorPreferences inspector_settings; |
69 bool site_specific_quirks_enabled; | 69 bool site_specific_quirks_enabled; |
70 bool shrinks_standalone_images_to_fit; | 70 bool shrinks_standalone_images_to_fit; |
71 bool uses_universal_detector; | 71 bool uses_universal_detector; |
72 bool text_areas_are_resizable; | 72 bool text_areas_are_resizable; |
73 bool java_enabled; | 73 bool java_enabled; |
74 bool allow_scripts_to_close_windows; | 74 bool allow_scripts_to_close_windows; |
75 bool remote_fonts_enabled; | 75 bool remote_fonts_enabled; |
76 bool javascript_can_access_clipboard; | 76 bool javascript_can_access_clipboard; |
77 bool xslt_enabled; | 77 bool xslt_enabled; |
78 bool xss_auditor_enabled; | 78 bool xss_auditor_enabled; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 // We try to keep the default values the same as the default values in | 177 // We try to keep the default values the same as the default values in |
178 // chrome, except for the cases where it would require lots of extra work for | 178 // chrome, except for the cases where it would require lots of extra work for |
179 // the embedder to use the same default value. | 179 // the embedder to use the same default value. |
180 WebPreferences(); | 180 WebPreferences(); |
181 ~WebPreferences(); | 181 ~WebPreferences(); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace content | 184 } // namespace content |
185 | 185 |
186 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 186 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |