| 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_PPB_VIDEO_LAYER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "ppapi/shared_impl/resource.h" |
| 8 #include "ppapi/thunk/ppb_video_layer_api.h" | 10 #include "ppapi/thunk/ppb_video_layer_api.h" |
| 9 #include "webkit/plugins/ppapi/resource.h" | |
| 10 | 11 |
| 11 struct PP_Rect; | 12 struct PP_Rect; |
| 12 struct PP_Size; | 13 struct PP_Size; |
| 13 | 14 |
| 14 namespace webkit { | 15 namespace webkit { |
| 15 namespace ppapi { | 16 namespace ppapi { |
| 16 | 17 |
| 17 class PluginInstance; | 18 class PPB_VideoLayer_Impl : public ::ppapi::Resource, |
| 18 | |
| 19 class PPB_VideoLayer_Impl : public Resource, | |
| 20 public ::ppapi::thunk::PPB_VideoLayer_API { | 19 public ::ppapi::thunk::PPB_VideoLayer_API { |
| 21 public: | 20 public: |
| 22 virtual ~PPB_VideoLayer_Impl(); | 21 virtual ~PPB_VideoLayer_Impl(); |
| 23 | 22 |
| 24 static PP_Resource Create(PluginInstance* instance, | 23 static PP_Resource Create(PP_Instance instance, |
| 25 PP_VideoLayerMode_Dev mode); | 24 PP_VideoLayerMode_Dev mode); |
| 26 | 25 |
| 27 // Resource override. | 26 // Resource override. |
| 28 virtual PPB_VideoLayer_API* AsPPB_VideoLayer_API() OVERRIDE; | 27 virtual PPB_VideoLayer_API* AsPPB_VideoLayer_API() OVERRIDE; |
| 29 | 28 |
| 30 // Derived classes must implement PPB_VideoLayer_API. | 29 // Derived classes must implement PPB_VideoLayer_API. |
| 31 | 30 |
| 32 protected: | 31 protected: |
| 33 explicit PPB_VideoLayer_Impl(PluginInstance* instance); | 32 explicit PPB_VideoLayer_Impl(PP_Instance instance); |
| 34 | 33 |
| 35 private: | 34 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Impl); | 35 DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Impl); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace ppapi | 38 } // namespace ppapi |
| 40 } // namespace webkit | 39 } // namespace webkit |
| 41 | 40 |
| 42 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ | 41 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ |
| OLD | NEW |