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

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

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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, 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_GLUE_WEBPREFERENCES_H__
12 #define WEBKIT_GLUE_WEBPREFERENCES_H__ 12 #define WEBKIT_GLUE_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.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 {
23 class WebView; 23 class WebView;
24 } 24 }
25 25
26 namespace webkit_glue { 26 namespace webkit_glue {
27 27
28 struct WEBKIT_GLUE_EXPORT WebPreferences { 28 struct WEBKIT_GLUE_EXPORT WebPreferences {
29 // Map of ISO 15924 four-letter script code to font family. For example, 29 // Map of ISO 15924 four-letter script code to font family. For example,
30 // "Arab" to "My Arabic Font". 30 // "Arab" to "My Arabic Font".
31 typedef std::map<std::string, string16> ScriptFontFamilyMap; 31 typedef std::map<std::string, base::string16> ScriptFontFamilyMap;
32 32
33 enum EditingBehavior { 33 enum EditingBehavior {
34 EDITING_BEHAVIOR_MAC, 34 EDITING_BEHAVIOR_MAC,
35 EDITING_BEHAVIOR_WIN, 35 EDITING_BEHAVIOR_WIN,
36 EDITING_BEHAVIOR_UNIX, 36 EDITING_BEHAVIOR_UNIX,
37 EDITING_BEHAVIOR_ANDROID 37 EDITING_BEHAVIOR_ANDROID
38 }; 38 };
39 39
40 // The ISO 15924 script code for undetermined script aka Common. It's the 40 // The ISO 15924 script code for undetermined script aka Common. It's the
41 // default used on WebKit's side to get/set a font setting when no script is 41 // default used on WebKit's side to get/set a font setting when no script is
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // the embedder to use the same default value. 171 // the embedder to use the same default value.
172 WebPreferences(); 172 WebPreferences();
173 ~WebPreferences(); 173 ~WebPreferences();
174 174
175 void Apply(WebKit::WebView* web_view) const; 175 void Apply(WebKit::WebView* web_view) const;
176 }; 176 };
177 177
178 } // namespace webkit_glue 178 } // namespace webkit_glue
179 179
180 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 180 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698