OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 8 // blink::WebSettings, content/common/view_messages.h, 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 20 matching lines...) Expand all Loading... |
31 // "Arab" to "My Arabic Font". | 31 // "Arab" to "My Arabic Font". |
32 typedef std::map<std::string, base::string16> ScriptFontFamilyMap; | 32 typedef std::map<std::string, base::string16> ScriptFontFamilyMap; |
33 | 33 |
34 typedef std::vector<std::pair<std::string, std::string> > | 34 typedef std::vector<std::pair<std::string, std::string> > |
35 WebInspectorPreferences; | 35 WebInspectorPreferences; |
36 | 36 |
37 enum EditingBehavior { | 37 enum EditingBehavior { |
38 EDITING_BEHAVIOR_MAC, | 38 EDITING_BEHAVIOR_MAC, |
39 EDITING_BEHAVIOR_WIN, | 39 EDITING_BEHAVIOR_WIN, |
40 EDITING_BEHAVIOR_UNIX, | 40 EDITING_BEHAVIOR_UNIX, |
41 EDITING_BEHAVIOR_ANDROID | 41 EDITING_BEHAVIOR_ANDROID, |
| 42 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
42 }; | 43 }; |
43 | 44 |
44 | 45 |
45 // The ISO 15924 script code for undetermined script aka Common. It's the | 46 // The ISO 15924 script code for undetermined script aka Common. It's the |
46 // default used on WebKit's side to get/set a font setting when no script is | 47 // default used on WebKit's side to get/set a font setting when no script is |
47 // specified. | 48 // specified. |
48 WEBKIT_COMMON_EXPORT extern const char kCommonScript[]; | 49 WEBKIT_COMMON_EXPORT extern const char kCommonScript[]; |
49 | 50 |
50 } // namespace webkit_glue | 51 } // namespace webkit_glue |
51 | 52 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 #endif | 192 #endif |
192 | 193 |
193 // We try to keep the default values the same as the default values in | 194 // We try to keep the default values the same as the default values in |
194 // chrome, except for the cases where it would require lots of extra work for | 195 // chrome, except for the cases where it would require lots of extra work for |
195 // the embedder to use the same default value. | 196 // the embedder to use the same default value. |
196 WebPreferences(); | 197 WebPreferences(); |
197 ~WebPreferences(); | 198 ~WebPreferences(); |
198 }; | 199 }; |
199 | 200 |
200 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ | 201 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ |
OLD | NEW |