| 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_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.4" | 14 #define PPB_CURSOR_CONTROL_DEV_INTERFACE_0_4 "PPB_CursorControl(Dev);0.4" |
| 15 #define PPB_CURSOR_CONTROL_DEV_INTERFACE PPB_CURSOR_CONTROL_DEV_INTERFACE_0_4 |
| 15 | 16 |
| 16 struct PPB_CursorControl_Dev { | 17 struct PPB_CursorControl_Dev { |
| 17 // Set a cursor. If "type" is PP_CURSORTYPE_CUSTOM, then "custom_image" | 18 // Set a cursor. If "type" is PP_CURSORTYPE_CUSTOM, then "custom_image" |
| 18 // must be an ImageData resource containing the cursor and "hot_spot" must | 19 // 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. | 20 // contain the offset within that image that refers to the cursor's position. |
| 20 PP_Bool (*SetCursor)(PP_Instance instance, | 21 PP_Bool (*SetCursor)(PP_Instance instance, |
| 21 enum PP_CursorType_Dev type, | 22 enum PP_CursorType_Dev type, |
| 22 PP_Resource custom_image, | 23 PP_Resource custom_image, |
| 23 const struct PP_Point* hot_spot); | 24 const struct PP_Point* hot_spot); |
| 24 | 25 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 48 | 49 |
| 49 // Returns PP_TRUE if the cursor is locked, PP_FALSE otherwise. | 50 // Returns PP_TRUE if the cursor is locked, PP_FALSE otherwise. |
| 50 PP_Bool (*HasCursorLock)(PP_Instance); | 51 PP_Bool (*HasCursorLock)(PP_Instance); |
| 51 | 52 |
| 52 // Returns PP_TRUE if the cursor can be locked, PP_FALSE otherwise. | 53 // Returns PP_TRUE if the cursor can be locked, PP_FALSE otherwise. |
| 53 PP_Bool (*CanLockCursor)(PP_Instance); | 54 PP_Bool (*CanLockCursor)(PP_Instance); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 #endif /* PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ */ | 57 #endif /* PPAPI_C_DEV_PPB_CURSOR_CONTROL_DEV_H_ */ |
| 57 | 58 |
| OLD | NEW |