| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ |
| 6 #define PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.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/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 | 13 |
| 14 #define PPB_CURSOR_CONTROL_DEV_INTERFACE "PPB_CursorControl(Dev);0.2" | 14 #define PPB_CURSOR_CONTROL_DEV_INTERFACE "PPB_CursorControl(Dev);0.3" |
| 15 | 15 |
| 16 struct PPB_CursorControl_Dev { | 16 struct PPB_CursorControl_Dev { |
| 17 // Set a cursor. If "type" is PP_CURSOR_TYPE_CUSTOM, then "custom_image" | 17 // Set a cursor. If "type" is PP_CURSOR_TYPE_CUSTOM, then "custom_image" |
| 18 // must be an ImageData resource containing the cursor and "hot_spot" must | 18 // must be an ImageData resource containing the cursor and "hot_spot" must |
| 19 // contain the offset within that image that refers to the cursor's position. | 19 // contain the offset within that image that refers to the cursor's position. |
| 20 PP_Bool (*SetCursor)(PP_Instance instance, | 20 PP_Bool (*SetCursor)(PP_Instance instance, |
| 21 enum PP_CursorType_Dev type, | 21 enum PP_CursorType_Dev type, |
| 22 PP_Resource custom_image, | 22 PP_Resource custom_image, |
| 23 const struct PP_Point* hot_spot); | 23 const struct PP_Point* hot_spot); |
| 24 | 24 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 // Returns PP_TRUE if the cursor is locked, PP_FALSE otherwise. | 49 // Returns PP_TRUE if the cursor is locked, PP_FALSE otherwise. |
| 50 PP_Bool (*HasCursorLock)(PP_Instance); | 50 PP_Bool (*HasCursorLock)(PP_Instance); |
| 51 | 51 |
| 52 // Returns PP_TRUE if the cursor can be locked, PP_FALSE otherwise. | 52 // Returns PP_TRUE if the cursor can be locked, PP_FALSE otherwise. |
| 53 PP_Bool (*CanLockCursor)(PP_Instance); | 53 PP_Bool (*CanLockCursor)(PP_Instance); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif /* PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ */ | 56 #endif /* PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ */ |
| 57 | 57 |
| OLD | NEW |