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