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

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

Issue 10384128: Quote WebPreferences in namespace webkit_glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2012 Created 8 years, 7 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
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, 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 #include "webkit/glue/webkit_glue_export.h"
20 20
21 namespace WebKit { 21 namespace WebKit {
22 class WebView; 22 class WebView;
23 } 23 }
24 24
25 namespace webkit_glue {
26
25 struct WEBKIT_GLUE_EXPORT WebPreferences { 27 struct WEBKIT_GLUE_EXPORT WebPreferences {
26 // Map of ISO 15924 four-letter script code to font family. For example, 28 // Map of ISO 15924 four-letter script code to font family. For example,
27 // "Arab" to "My Arabic Font". 29 // "Arab" to "My Arabic Font".
28 typedef std::vector<std::pair<std::string, string16> > ScriptFontFamilyMap; 30 typedef std::vector<std::pair<std::string, string16> > ScriptFontFamilyMap;
29 31
30 string16 standard_font_family; 32 string16 standard_font_family;
31 string16 fixed_font_family; 33 string16 fixed_font_family;
32 string16 serif_font_family; 34 string16 serif_font_family;
33 string16 sans_serif_font_family; 35 string16 sans_serif_font_family;
34 string16 cursive_font_family; 36 string16 cursive_font_family;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool css_shaders_enabled; 123 bool css_shaders_enabled;
122 // We try to keep the default values the same as the default values in 124 // We try to keep the default values the same as the default values in
123 // chrome, except for the cases where it would require lots of extra work for 125 // chrome, except for the cases where it would require lots of extra work for
124 // the embedder to use the same default value. 126 // the embedder to use the same default value.
125 WebPreferences(); 127 WebPreferences();
126 ~WebPreferences(); 128 ~WebPreferences();
127 129
128 void Apply(WebKit::WebView* web_view) const; 130 void Apply(WebKit::WebView* web_view) const;
129 }; 131 };
130 132
133 } // namespace webkit_glue
134
131 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 135 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « ui/views/examples/content_client/examples_content_browser_client.cc ('k') | webkit/glue/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698