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