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 #ifndef PPAPI_PPB_CURSOR_CONTROL_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_CURSOR_CONTROL_PROXY_H_ |
6 #define PPAPI_PPB_CURSOR_CONTROL_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_CURSOR_CONTROL_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/c/pp_point.h" | 11 #include "ppapi/c/pp_point.h" |
12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
13 #include "ppapi/proxy/interface_proxy.h" | 13 #include "ppapi/proxy/interface_proxy.h" |
14 #include "ppapi/shared_impl/function_group_base.h" | 14 #include "ppapi/shared_impl/function_group_base.h" |
15 #include "ppapi/shared_impl/host_resource.h" | 15 #include "ppapi/shared_impl/host_resource.h" |
16 #include "ppapi/thunk/ppb_cursor_control_api.h" | 16 #include "ppapi/thunk/ppb_cursor_control_api.h" |
17 | 17 |
18 struct PPB_CursorControl_Dev; | |
19 | |
20 namespace ppapi { | 18 namespace ppapi { |
21 namespace proxy { | 19 namespace proxy { |
22 | 20 |
23 class PPB_CursorControl_Proxy | 21 class PPB_CursorControl_Proxy |
24 : public InterfaceProxy, | 22 : public InterfaceProxy, |
25 public ppapi::thunk::PPB_CursorControl_FunctionAPI { | 23 public ppapi::thunk::PPB_CursorControl_FunctionAPI { |
26 public: | 24 public: |
27 PPB_CursorControl_Proxy(Dispatcher* dispatcher); | 25 explicit PPB_CursorControl_Proxy(Dispatcher* dispatcher); |
28 virtual ~PPB_CursorControl_Proxy(); | 26 virtual ~PPB_CursorControl_Proxy(); |
29 | 27 |
30 // FunctionGroupBase overrides. | 28 // FunctionGroupBase overrides. |
31 ppapi::thunk::PPB_CursorControl_FunctionAPI* AsPPB_CursorControl_FunctionAPI() | 29 ppapi::thunk::PPB_CursorControl_FunctionAPI* AsPPB_CursorControl_FunctionAPI() |
32 OVERRIDE; | 30 OVERRIDE; |
33 | 31 |
34 // PPB_CursorControl_FunctionAPI implementation. | 32 // PPB_CursorControl_FunctionAPI implementation. |
35 virtual PP_Bool SetCursor(PP_Instance instance, | 33 virtual PP_Bool SetCursor(PP_Instance instance, |
36 PP_CursorType_Dev type, | 34 PP_CursorType_Dev type, |
37 PP_Resource custom_image_id, | 35 PP_Resource custom_image_id, |
(...skipping 21 matching lines...) Expand all Loading... |
59 PP_Bool* result); | 57 PP_Bool* result); |
60 void OnMsgHasCursorLock(PP_Instance instance, | 58 void OnMsgHasCursorLock(PP_Instance instance, |
61 PP_Bool* result); | 59 PP_Bool* result); |
62 void OnMsgCanLockCursor(PP_Instance instance, | 60 void OnMsgCanLockCursor(PP_Instance instance, |
63 PP_Bool* result); | 61 PP_Bool* result); |
64 }; | 62 }; |
65 | 63 |
66 } // namespace proxy | 64 } // namespace proxy |
67 } // namespace ppapi | 65 } // namespace ppapi |
68 | 66 |
69 #endif // PPAPI_PPB_CURSOR_CONTROL_PROXY_H_ | 67 #endif // PPAPI_PROXY_PPB_CURSOR_CONTROL_PROXY_H_ |
OLD | NEW |