OLD | NEW |
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 "content/public/common/webpreferences.h" |
8 #include "ppapi/shared_impl/ppapi_shared_export.h" | 9 #include "ppapi/shared_impl/ppapi_shared_export.h" |
9 #include "webkit/common/webpreferences.h" | |
10 | 10 |
| 11 namespace content { |
11 struct WebPreferences; | 12 struct WebPreferences; |
| 13 } |
12 | 14 |
13 namespace ppapi { | 15 namespace ppapi { |
14 | 16 |
15 struct PPAPI_SHARED_EXPORT Preferences { | 17 struct PPAPI_SHARED_EXPORT Preferences { |
16 public: | 18 public: |
17 Preferences(); | 19 Preferences(); |
18 explicit Preferences(const WebPreferences& prefs); | 20 explicit Preferences(const content::WebPreferences& prefs); |
19 ~Preferences(); | 21 ~Preferences(); |
20 | 22 |
21 webkit_glue::ScriptFontFamilyMap standard_font_family_map; | 23 content::ScriptFontFamilyMap standard_font_family_map; |
22 webkit_glue::ScriptFontFamilyMap fixed_font_family_map; | 24 content::ScriptFontFamilyMap fixed_font_family_map; |
23 webkit_glue::ScriptFontFamilyMap serif_font_family_map; | 25 content::ScriptFontFamilyMap serif_font_family_map; |
24 webkit_glue::ScriptFontFamilyMap sans_serif_font_family_map; | 26 content::ScriptFontFamilyMap sans_serif_font_family_map; |
25 int default_font_size; | 27 int default_font_size; |
26 int default_fixed_font_size; | 28 int default_fixed_font_size; |
27 int number_of_cpu_cores; | 29 int number_of_cpu_cores; |
28 bool is_3d_supported; | 30 bool is_3d_supported; |
29 bool is_stage3d_supported; | 31 bool is_stage3d_supported; |
30 bool is_stage3d_baseline_supported; | 32 bool is_stage3d_baseline_supported; |
31 bool is_webgl_supported; | 33 bool is_webgl_supported; |
32 bool is_accelerated_video_decode_enabled; | 34 bool is_accelerated_video_decode_enabled; |
33 }; | 35 }; |
34 | 36 |
35 } // namespace ppapi | 37 } // namespace ppapi |
36 | 38 |
37 #endif // PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_ | 39 #endif // PPAPI_SHARED_IMPL_PPAPI_PREFERENCES_H_ |
OLD | NEW |