OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_console_dev.h" | 8 #include "ppapi/c/dev/ppb_console_dev.h" |
9 #include "ppapi/c/dev/ppb_url_util_dev.h" | 9 #include "ppapi/c/dev/ppb_url_util_dev.h" |
10 #include "ppapi/c/pp_bool.h" | 10 #include "ppapi/c/pp_bool.h" |
11 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
12 #include "ppapi/c/pp_size.h" | 12 #include "ppapi/c/pp_size.h" |
13 #include "ppapi/c/pp_time.h" | 13 #include "ppapi/c/pp_time.h" |
14 #include "ppapi/c/ppb_audio_config.h" | 14 #include "ppapi/c/ppb_audio_config.h" |
15 #include "ppapi/c/ppb_gamepad.h" | 15 #include "ppapi/c/ppb_gamepad.h" |
16 #include "ppapi/c/ppb_instance.h" | 16 #include "ppapi/c/ppb_instance.h" |
| 17 #include "ppapi/c/ppb_mouse_cursor.h" |
17 #include "ppapi/c/private/ppb_instance_private.h" | 18 #include "ppapi/c/private/ppb_instance_private.h" |
18 #include "ppapi/shared_impl/api_id.h" | 19 #include "ppapi/shared_impl/api_id.h" |
19 | 20 |
20 // Windows headers interfere with this file. | 21 // Windows headers interfere with this file. |
21 #ifdef PostMessage | 22 #ifdef PostMessage |
22 #undef PostMessage | 23 #undef PostMessage |
23 #endif | 24 #endif |
24 | 25 |
25 namespace ppapi { | 26 namespace ppapi { |
26 | 27 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 93 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
93 uint32_t event_classes) = 0; | 94 uint32_t event_classes) = 0; |
94 virtual void ClearInputEventRequest(PP_Instance instance, | 95 virtual void ClearInputEventRequest(PP_Instance instance, |
95 uint32_t event_classes) = 0; | 96 uint32_t event_classes) = 0; |
96 virtual void ClosePendingUserGesture(PP_Instance instance, | 97 virtual void ClosePendingUserGesture(PP_Instance instance, |
97 PP_TimeTicks timestamp) = 0; | 98 PP_TimeTicks timestamp) = 0; |
98 | 99 |
99 // Messaging. | 100 // Messaging. |
100 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; | 101 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; |
101 | 102 |
| 103 // Mouse cursor. |
| 104 virtual PP_Bool SetCursor(PP_Instance instance, |
| 105 PP_MouseCursor_Type type, |
| 106 PP_Resource image, |
| 107 const PP_Point* hot_spot) = 0; |
| 108 |
102 // MouseLock. | 109 // MouseLock. |
103 virtual int32_t LockMouse(PP_Instance instance, | 110 virtual int32_t LockMouse(PP_Instance instance, |
104 PP_CompletionCallback callback) = 0; | 111 PP_CompletionCallback callback) = 0; |
105 virtual void UnlockMouse(PP_Instance instance) = 0; | 112 virtual void UnlockMouse(PP_Instance instance) = 0; |
106 | 113 |
107 // Zoom. | 114 // Zoom. |
108 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 115 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
109 virtual void ZoomLimitsChanged(PP_Instance instance, | 116 virtual void ZoomLimitsChanged(PP_Instance instance, |
110 double minimum_factor, | 117 double minimum_factor, |
111 double maximium_factor) = 0; | 118 double maximium_factor) = 0; |
(...skipping 11 matching lines...) Expand all Loading... |
123 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 130 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
124 PP_URLComponents_Dev* components) = 0; | 131 PP_URLComponents_Dev* components) = 0; |
125 | 132 |
126 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 133 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
127 }; | 134 }; |
128 | 135 |
129 } // namespace thunk | 136 } // namespace thunk |
130 } // namespace ppapi | 137 } // namespace ppapi |
131 | 138 |
132 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 139 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |