| 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 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 #include "ppapi/c/dev/pp_cursor_type_dev.h" | |
| 10 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | |
| 11 #include "ppapi/c/pp_point.h" | |
| 12 #include "ppapi/c/pp_resource.h" | |
| 13 #include "webkit/plugins/ppapi/common.h" | |
| 14 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | |
| 15 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | |
| 16 | |
| 17 using ::ppapi::thunk::PPB_CursorControl_FunctionAPI; | |
| 18 | |
| 19 namespace webkit { | |
| 20 namespace ppapi { | |
| 21 | |
| 22 PPB_CursorControl_Impl::PPB_CursorControl_Impl(PluginInstance* instance) | |
| 23 : instance_(instance) { | |
| 24 } | |
| 25 | |
| 26 PPB_CursorControl_Impl::~PPB_CursorControl_Impl() { | |
| 27 } | |
| 28 | |
| 29 PPB_CursorControl_FunctionAPI* | |
| 30 PPB_CursorControl_Impl::AsPPB_CursorControl_FunctionAPI() { | |
| 31 return this; | |
| 32 } | |
| 33 | |
| 34 PP_Bool PPB_CursorControl_Impl::SetCursor(PP_Instance instance, | |
| 35 PP_CursorType_Dev type, | |
| 36 PP_Resource custom_image_id, | |
| 37 const PP_Point* hot_spot) { | |
| 38 return PP_FromBool(instance_->SetCursor(type, custom_image_id, hot_spot)); | |
| 39 } | |
| 40 | |
| 41 PP_Bool PPB_CursorControl_Impl::LockCursor(PP_Instance instance) { | |
| 42 // TODO: implement cursor locking. | |
| 43 return PP_FALSE; | |
| 44 } | |
| 45 | |
| 46 PP_Bool PPB_CursorControl_Impl::UnlockCursor(PP_Instance instance) { | |
| 47 // TODO: implement cursor locking. | |
| 48 return PP_FALSE; | |
| 49 } | |
| 50 | |
| 51 PP_Bool PPB_CursorControl_Impl::HasCursorLock(PP_Instance instance) { | |
| 52 // TODO: implement cursor locking. | |
| 53 return PP_FALSE; | |
| 54 } | |
| 55 | |
| 56 PP_Bool PPB_CursorControl_Impl::CanLockCursor(PP_Instance instance) { | |
| 57 // TODO: implement cursor locking. | |
| 58 return PP_FALSE; | |
| 59 } | |
| 60 | |
| 61 } // namespace ppapi | |
| 62 } // namespace webkit | |
| OLD | NEW |