Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: webkit/plugins/ppapi/ppb_cursor_control_impl.cc

Issue 9814015: Add new MouseCursor interface for setting the mouse cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_cursor_control_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_cursor_control_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698