| 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_CURSOR_CONTROL_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_CURSOR_CONTROL_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CURSOR_CONTROL_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CURSOR_CONTROL_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ppapi/shared_impl/function_group_base.h" | 10 #include "ppapi/shared_impl/function_group_base.h" |
| 11 #include "ppapi/thunk/ppb_cursor_control_api.h" | 11 #include "ppapi/thunk/ppb_cursor_control_api.h" |
| 12 | 12 |
| 13 namespace webkit { | 13 namespace webkit { |
| 14 namespace ppapi { | 14 namespace ppapi { |
| 15 | 15 |
| 16 class PluginInstance; | 16 class PluginInstance; |
| 17 | 17 |
| 18 class PPB_CursorControl_Impl | 18 class PPB_CursorControl_Impl |
| 19 : public ::ppapi::FunctionGroupBase, | 19 : public ::ppapi::FunctionGroupBase, |
| 20 public ::ppapi::thunk::PPB_CursorControl_FunctionAPI { | 20 public ::ppapi::thunk::PPB_CursorControl_FunctionAPI { |
| 21 public: | 21 public: |
| 22 PPB_CursorControl_Impl(PluginInstance* instance); | 22 PPB_CursorControl_Impl(PluginInstance* instance); |
| 23 virtual ~PPB_CursorControl_Impl(); | 23 virtual ~PPB_CursorControl_Impl(); |
| 24 | 24 |
| 25 // FunctionGroupBase overrides. | 25 // FunctionGroupBase overrides. |
| 26 virtual ::ppapi::thunk::PPB_CursorControl_FunctionAPI* | 26 virtual ::ppapi::thunk::PPB_CursorControl_FunctionAPI* |
| 27 AsPPB_CursorControl_FunctionAPI() OVERRIDE; | 27 AsCursorControl_FunctionAPI() OVERRIDE; |
| 28 | 28 |
| 29 // PPB_CursorControl_FunctionAPI implementation. | 29 // PPB_CursorControl_FunctionAPI implementation. |
| 30 virtual PP_Bool SetCursor(PP_Instance instance, | 30 virtual PP_Bool SetCursor(PP_Instance instance, |
| 31 PP_CursorType_Dev type, | 31 PP_CursorType_Dev type, |
| 32 PP_Resource custom_image_id, | 32 PP_Resource custom_image_id, |
| 33 const PP_Point* hot_spot) OVERRIDE; | 33 const PP_Point* hot_spot) OVERRIDE; |
| 34 virtual PP_Bool LockCursor(PP_Instance instance) OVERRIDE; | 34 virtual PP_Bool LockCursor(PP_Instance instance) OVERRIDE; |
| 35 virtual PP_Bool UnlockCursor(PP_Instance instance) OVERRIDE; | 35 virtual PP_Bool UnlockCursor(PP_Instance instance) OVERRIDE; |
| 36 virtual PP_Bool HasCursorLock(PP_Instance instance) OVERRIDE; | 36 virtual PP_Bool HasCursorLock(PP_Instance instance) OVERRIDE; |
| 37 virtual PP_Bool CanLockCursor(PP_Instance instance) OVERRIDE; | 37 virtual PP_Bool CanLockCursor(PP_Instance instance) OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 PluginInstance* instance_; | 40 PluginInstance* instance_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(PPB_CursorControl_Impl); | 42 DISALLOW_COPY_AND_ASSIGN(PPB_CursorControl_Impl); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace ppapi | 45 } // namespace ppapi |
| 46 } // namespace webkit | 46 } // namespace webkit |
| 47 | 47 |
| 48 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CURSOR_CONTROL_IMPL_H_ | 48 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CURSOR_CONTROL_IMPL_H_ |
| 49 | 49 |
| OLD | NEW |