Chromium Code Reviews| 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, content/common/view_messages.h, browser/tab_contents/ | 8 // WebKit::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 29 matching lines...) Expand all Loading... | |
| 40 EDITING_BEHAVIOR_UNIX, | 40 EDITING_BEHAVIOR_UNIX, |
| 41 EDITING_BEHAVIOR_ANDROID | 41 EDITING_BEHAVIOR_ANDROID |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 | 44 |
| 45 // The ISO 15924 script code for undetermined script aka Common. It's the | 45 // 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 | 46 // default used on WebKit's side to get/set a font setting when no script is |
| 47 // specified. | 47 // specified. |
| 48 WEBKIT_GLUE_EXPORT extern const char kCommonScript[]; | 48 WEBKIT_GLUE_EXPORT extern const char kCommonScript[]; |
| 49 | 49 |
| 50 WEBKIT_GLUE_EXPORT void ApplyWebPreferences(const WebPreferences& prefs, | 50 WEBKIT_GLUE_EXPORT void ApplyWebPreferences(const WebPreferences& prefs, |
|
jamesr
2013/05/30 20:24:23
could we just move this function declaration to a
scottmg
2013/05/30 21:03:51
Done.
| |
| 51 WebKit::WebView* web_view); | 51 WebKit::WebView* web_view); |
| 52 | 52 |
| 53 } // namespace webkit_glue | 53 } // namespace webkit_glue |
| 54 | 54 |
| 55 struct WEBKIT_GLUE_EXPORT WebPreferences { | 55 struct WEBKIT_GLUE_EXPORT WebPreferences { |
| 56 webkit_glue::ScriptFontFamilyMap standard_font_family_map; | 56 webkit_glue::ScriptFontFamilyMap standard_font_family_map; |
| 57 webkit_glue::ScriptFontFamilyMap fixed_font_family_map; | 57 webkit_glue::ScriptFontFamilyMap fixed_font_family_map; |
| 58 webkit_glue::ScriptFontFamilyMap serif_font_family_map; | 58 webkit_glue::ScriptFontFamilyMap serif_font_family_map; |
| 59 webkit_glue::ScriptFontFamilyMap sans_serif_font_family_map; | 59 webkit_glue::ScriptFontFamilyMap sans_serif_font_family_map; |
| 60 webkit_glue::ScriptFontFamilyMap cursive_font_family_map; | 60 webkit_glue::ScriptFontFamilyMap cursive_font_family_map; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 #endif | 175 #endif |
| 176 | 176 |
| 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 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 184 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |