Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: webkit/common/webpreferences.h

Issue 16216007: split webkit/glue/webpreferences to common and renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new location for public/platform Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/ppapi_preferences.h ('k') | webkit/common/webpreferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #ifndef WEBKIT_GLUE_WEBPREFERENCES_H__ 11 #ifndef WEBKIT_COMMON_WEBPREFERENCES_H__
12 #define WEBKIT_GLUE_WEBPREFERENCES_H__ 12 #define WEBKIT_COMMON_WEBPREFERENCES_H__
13 13
14 #include <map> 14 #include <map>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/string16.h" 18 #include "base/string16.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "webkit/glue/webkit_glue_export.h" 20 #include "webkit/glue/webkit_glue_export.h"
21 21
22 namespace WebKit { 22 namespace WebKit {
(...skipping 17 matching lines...) Expand all
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,
51 WebKit::WebView* web_view);
52
53 } // namespace webkit_glue 50 } // namespace webkit_glue
54 51
55 struct WEBKIT_GLUE_EXPORT WebPreferences { 52 struct WEBKIT_GLUE_EXPORT WebPreferences {
56 webkit_glue::ScriptFontFamilyMap standard_font_family_map; 53 webkit_glue::ScriptFontFamilyMap standard_font_family_map;
57 webkit_glue::ScriptFontFamilyMap fixed_font_family_map; 54 webkit_glue::ScriptFontFamilyMap fixed_font_family_map;
58 webkit_glue::ScriptFontFamilyMap serif_font_family_map; 55 webkit_glue::ScriptFontFamilyMap serif_font_family_map;
59 webkit_glue::ScriptFontFamilyMap sans_serif_font_family_map; 56 webkit_glue::ScriptFontFamilyMap sans_serif_font_family_map;
60 webkit_glue::ScriptFontFamilyMap cursive_font_family_map; 57 webkit_glue::ScriptFontFamilyMap cursive_font_family_map;
61 webkit_glue::ScriptFontFamilyMap fantasy_font_family_map; 58 webkit_glue::ScriptFontFamilyMap fantasy_font_family_map;
62 webkit_glue::ScriptFontFamilyMap pictograph_font_family_map; 59 webkit_glue::ScriptFontFamilyMap pictograph_font_family_map;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool use_wide_viewport; 171 bool use_wide_viewport;
175 #endif 172 #endif
176 173
177 // We try to keep the default values the same as the default values in 174 // 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 175 // chrome, except for the cases where it would require lots of extra work for
179 // the embedder to use the same default value. 176 // the embedder to use the same default value.
180 WebPreferences(); 177 WebPreferences();
181 ~WebPreferences(); 178 ~WebPreferences();
182 }; 179 };
183 180
184 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 181 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppapi_preferences.h ('k') | webkit/common/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698