| 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 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "ppapi/c/dev/pp_cursor_type_dev.h" | 9 #include "ppapi/c/dev/pp_cursor_type_dev.h" |
| 10 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 10 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace ppapi { | 21 namespace ppapi { |
| 22 | 22 |
| 23 PPB_CursorControl_Impl::PPB_CursorControl_Impl(PluginInstance* instance) | 23 PPB_CursorControl_Impl::PPB_CursorControl_Impl(PluginInstance* instance) |
| 24 : instance_(instance) { | 24 : instance_(instance) { |
| 25 } | 25 } |
| 26 | 26 |
| 27 PPB_CursorControl_Impl::~PPB_CursorControl_Impl() { | 27 PPB_CursorControl_Impl::~PPB_CursorControl_Impl() { |
| 28 } | 28 } |
| 29 | 29 |
| 30 PPB_CursorControl_FunctionAPI* | 30 PPB_CursorControl_FunctionAPI* |
| 31 PPB_CursorControl_Impl::AsPPB_CursorControl_FunctionAPI() { | 31 PPB_CursorControl_Impl::AsCursorControl_FunctionAPI() { |
| 32 return this; | 32 return this; |
| 33 } | 33 } |
| 34 | 34 |
| 35 PP_Bool PPB_CursorControl_Impl::SetCursor(PP_Instance instance, | 35 PP_Bool PPB_CursorControl_Impl::SetCursor(PP_Instance instance, |
| 36 PP_CursorType_Dev type, | 36 PP_CursorType_Dev type, |
| 37 PP_Resource custom_image_id, | 37 PP_Resource custom_image_id, |
| 38 const PP_Point* hot_spot) { | 38 const PP_Point* hot_spot) { |
| 39 return PP_FromBool(instance_->SetCursor(type, custom_image_id, hot_spot)); | 39 return PP_FromBool(instance_->SetCursor(type, custom_image_id, hot_spot)); |
| 40 } | 40 } |
| 41 | 41 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 return PP_FALSE; | 54 return PP_FALSE; |
| 55 } | 55 } |
| 56 | 56 |
| 57 PP_Bool PPB_CursorControl_Impl::CanLockCursor(PP_Instance instance) { | 57 PP_Bool PPB_CursorControl_Impl::CanLockCursor(PP_Instance instance) { |
| 58 // TODO: implement cursor locking. | 58 // TODO: implement cursor locking. |
| 59 return PP_FALSE; | 59 return PP_FALSE; |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace ppapi | 62 } // namespace ppapi |
| 63 } // namespace webkit | 63 } // namespace webkit |
| OLD | NEW |