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

Side by Side Diff: ppapi/shared_impl/ppapi_preferences.h

Issue 10107014: Migrate WebKit "global script" font prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments 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 #ifndef PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_
6 #define PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_ 6 #define PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_
7 7
8 #include "base/string16.h"
9 #include "ppapi/shared_impl/ppapi_shared_export.h" 8 #include "ppapi/shared_impl/ppapi_shared_export.h"
9 #include "webkit/glue/webpreferences.h"
10 10
11 namespace webkit_glue { 11 namespace webkit_glue {
12 struct WebPreferences; 12 struct WebPreferences;
13 } 13 }
14 14
15 namespace ppapi { 15 namespace ppapi {
16 16
17 struct PPAPI_SHARED_EXPORT Preferences { 17 struct PPAPI_SHARED_EXPORT Preferences {
18 public: 18 public:
19 Preferences(); 19 Preferences();
20 explicit Preferences(const webkit_glue::WebPreferences& prefs); 20 explicit Preferences(const webkit_glue::WebPreferences& prefs);
21 ~Preferences(); 21 ~Preferences();
22 22
23 string16 standard_font_family; 23 webkit_glue::WebPreferences::ScriptFontFamilyMap standard_font_family_map;
24 string16 fixed_font_family; 24 webkit_glue::WebPreferences::ScriptFontFamilyMap fixed_font_family_map;
25 string16 serif_font_family; 25 webkit_glue::WebPreferences::ScriptFontFamilyMap serif_font_family_map;
26 string16 sans_serif_font_family; 26 webkit_glue::WebPreferences::ScriptFontFamilyMap sans_serif_font_family_map;
27 int default_font_size; 27 int default_font_size;
28 int default_fixed_font_size; 28 int default_fixed_font_size;
29 29
30 bool is_3d_supported; 30 bool is_3d_supported;
31 }; 31 };
32 32
33 } // namespace ppapi 33 } // namespace ppapi
34 34
35 #endif // PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_ 35 #endif // PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698