| 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_WIDGET_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/c/pp_rect.h" | 10 #include "ppapi/c/pp_rect.h" |
| 11 #include "ppapi/shared_impl/resource.h" |
| 11 #include "ppapi/thunk/ppb_widget_api.h" | 12 #include "ppapi/thunk/ppb_widget_api.h" |
| 12 #include "webkit/plugins/ppapi/resource.h" | |
| 13 | 13 |
| 14 struct PPB_Widget_Dev; | 14 struct PPB_Widget_Dev; |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 class Rect; | 17 class Rect; |
| 18 } | 18 } |
| 19 namespace ppapi { | 19 namespace ppapi { |
| 20 struct InputEventData; | 20 struct InputEventData; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace webkit { | 23 namespace webkit { |
| 24 namespace ppapi { | 24 namespace ppapi { |
| 25 | 25 |
| 26 class PPB_ImageData_Impl; | 26 class PPB_ImageData_Impl; |
| 27 class PluginInstance; | |
| 28 | 27 |
| 29 class PPB_Widget_Impl : public Resource, | 28 class PPB_Widget_Impl : public ::ppapi::Resource, |
| 30 public ::ppapi::thunk::PPB_Widget_API { | 29 public ::ppapi::thunk::PPB_Widget_API { |
| 31 public: | 30 public: |
| 32 explicit PPB_Widget_Impl(PluginInstance* instance); | 31 explicit PPB_Widget_Impl(PP_Instance instance); |
| 33 virtual ~PPB_Widget_Impl(); | 32 virtual ~PPB_Widget_Impl(); |
| 34 | 33 |
| 35 // Resource overrides. | 34 // Resource overrides. |
| 36 virtual ::ppapi::thunk::PPB_Widget_API* AsPPB_Widget_API() OVERRIDE; | 35 virtual ::ppapi::thunk::PPB_Widget_API* AsPPB_Widget_API() OVERRIDE; |
| 37 | 36 |
| 38 // PPB_WidgetAPI implementation. | 37 // PPB_WidgetAPI implementation. |
| 39 virtual PP_Bool Paint(const PP_Rect* rect, PP_Resource ) OVERRIDE; | 38 virtual PP_Bool Paint(const PP_Rect* rect, PP_Resource ) OVERRIDE; |
| 40 virtual PP_Bool HandleEvent(PP_Resource pp_input_event) OVERRIDE; | 39 virtual PP_Bool HandleEvent(PP_Resource pp_input_event) OVERRIDE; |
| 41 virtual PP_Bool GetLocation(PP_Rect* location) OVERRIDE; | 40 virtual PP_Bool GetLocation(PP_Rect* location) OVERRIDE; |
| 42 virtual void SetLocation(const PP_Rect* location) OVERRIDE; | 41 virtual void SetLocation(const PP_Rect* location) OVERRIDE; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 55 private: | 54 private: |
| 56 PP_Rect location_; | 55 PP_Rect location_; |
| 57 | 56 |
| 58 DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl); | 57 DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl); |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 } // namespace ppapi | 60 } // namespace ppapi |
| 62 } // namespace webkit | 61 } // namespace webkit |
| 63 | 62 |
| 64 #endif // WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_ | 63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_ |
| OLD | NEW |