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