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

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

Issue 8741006: Add exports needed for glue to build as a component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r112585 Created 9 years 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 | « webkit/glue/webmenuitem.h ('k') | webkit/glue/webthread_impl.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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, common/render_messages.cc, browser/tab_contents/ 8 // WebKit::WebSettings, common/render_messages.cc, 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_GLUE_WEBPREFERENCES_H__
12 #define WEBKIT_GLUE_WEBPREFERENCES_H__ 12 #define WEBKIT_GLUE_WEBPREFERENCES_H__
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "webkit/glue/webkit_glue_export.h"
19 20
20 namespace WebKit { 21 namespace WebKit {
21 class WebView; 22 class WebView;
22 } 23 }
23 24
24 struct WebPreferences { 25 struct WEBKIT_GLUE_EXPORT WebPreferences {
25 // Map of ISO 15924 four-letter script code to font family. For example, 26 // Map of ISO 15924 four-letter script code to font family. For example,
26 // "Arab" to "My Arabic Font". 27 // "Arab" to "My Arabic Font".
27 typedef std::vector<std::pair<std::string, string16> > ScriptFontFamilyMap; 28 typedef std::vector<std::pair<std::string, string16> > ScriptFontFamilyMap;
28 29
29 string16 standard_font_family; 30 string16 standard_font_family;
30 string16 fixed_font_family; 31 string16 fixed_font_family;
31 string16 serif_font_family; 32 string16 serif_font_family;
32 string16 sans_serif_font_family; 33 string16 sans_serif_font_family;
33 string16 cursive_font_family; 34 string16 cursive_font_family;
34 string16 fantasy_font_family; 35 string16 fantasy_font_family;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // We try to keep the default values the same as the default values in 112 // We try to keep the default values the same as the default values in
112 // chrome, except for the cases where it would require lots of extra work for 113 // chrome, except for the cases where it would require lots of extra work for
113 // the embedder to use the same default value. 114 // the embedder to use the same default value.
114 WebPreferences(); 115 WebPreferences();
115 ~WebPreferences(); 116 ~WebPreferences();
116 117
117 void Apply(WebKit::WebView* web_view) const; 118 void Apply(WebKit::WebView* web_view) const;
118 }; 119 };
119 120
120 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 121 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « webkit/glue/webmenuitem.h ('k') | webkit/glue/webthread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698