OLD | NEW |
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 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/shared_impl/function_group_base.h" | 9 #include "ppapi/shared_impl/function_group_base.h" |
10 #include "ppapi/thunk/resource_creation_api.h" | 10 #include "ppapi/thunk/resource_creation_api.h" |
11 | 11 |
12 namespace webkit { | 12 namespace webkit { |
13 namespace ppapi { | 13 namespace ppapi { |
14 | 14 |
15 class ResourceCreationImpl : public ::ppapi::shared_impl::FunctionGroupBase, | 15 class ResourceCreationImpl : public ::ppapi::shared_impl::FunctionGroupBase, |
16 public ::ppapi::thunk::ResourceCreationAPI { | 16 public ::ppapi::thunk::ResourceCreationAPI { |
17 public: | 17 public: |
18 ResourceCreationImpl(); | 18 ResourceCreationImpl(); |
19 virtual ~ResourceCreationImpl(); | 19 virtual ~ResourceCreationImpl(); |
20 | 20 |
21 // FunctionGroupBase implementation. | 21 // FunctionGroupBase implementation. |
22 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreation(); | 22 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreation(); |
23 | 23 |
24 // ResourceCreationAPI implementation. | 24 // ResourceCreationAPI implementation. |
| 25 virtual PP_Resource CreateFontObject( |
| 26 PP_Instance instance, |
| 27 const PP_FontDescription_Dev* description); |
25 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, | 28 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, |
26 const PP_Size& size, | 29 const PP_Size& size, |
27 PP_Bool is_always_opaque); | 30 PP_Bool is_always_opaque); |
28 virtual PP_Resource CreateImageData(PP_Instance instance, | 31 virtual PP_Resource CreateImageData(PP_Instance instance, |
29 PP_ImageDataFormat format, | 32 PP_ImageDataFormat format, |
30 const PP_Size& size, | 33 const PP_Size& size, |
31 PP_Bool init_to_zero); | 34 PP_Bool init_to_zero); |
32 | 35 |
33 private: | 36 private: |
34 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); | 37 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); |
35 }; | 38 }; |
36 | 39 |
37 } // namespace ppapi | 40 } // namespace ppapi |
38 } // namespace webkit | 41 } // namespace webkit |
39 | 42 |
40 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 43 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
OLD | NEW |