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