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

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

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
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 #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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppb_cursor_control_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698