| 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 | 5 |
| 6 /* From ppp_mouse_lock.idl modified Wed Nov 9 12:07:33 2011. */ | 6 /* From ppp_mouse_lock.idl modified Wed Dec 21 19:08:34 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPP_MOUSE_LOCK_H_ | 8 #ifndef PPAPI_C_PPP_MOUSE_LOCK_H_ |
| 9 #define PPAPI_C_PPP_MOUSE_LOCK_H_ | 9 #define PPAPI_C_PPP_MOUSE_LOCK_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
| 14 | 14 |
| 15 #define PPP_MOUSELOCK_INTERFACE_1_0 "PPP_MouseLock;1.0" | 15 #define PPP_MOUSELOCK_INTERFACE_1_0 "PPP_MouseLock;1.0" |
| 16 #define PPP_MOUSELOCK_INTERFACE PPP_MOUSELOCK_INTERFACE_1_0 | 16 #define PPP_MOUSELOCK_INTERFACE PPP_MOUSELOCK_INTERFACE_1_0 |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @file | 19 * @file |
| 20 * This file defines the <code>PPP_MouseLock</code> interface containing a | 20 * This file defines the <code>PPP_MouseLock</code> interface containing a |
| 21 * function that you must implement to receive mouse lock events from the | 21 * function that you must implement to receive mouse lock events from the |
| 22 * browser. | 22 * browser. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * @addtogroup Interfaces | 27 * @addtogroup Interfaces |
| 28 * @{ | 28 * @{ |
| 29 */ | 29 */ |
| 30 /** | 30 /** |
| 31 * The <code>PPP_MouseLock</code> interface contains a function that you must | 31 * The <code>PPP_MouseLock</code> interface contains a function that you must |
| 32 * implement to receive mouse lock events from the browser. | 32 * implement to receive mouse lock events from the browser. |
| 33 */ | 33 */ |
| 34 struct PPP_MouseLock { | 34 struct PPP_MouseLock_1_0 { |
| 35 /** | 35 /** |
| 36 * MouseLockLost() is called when the instance loses the mouse lock, such as | 36 * MouseLockLost() is called when the instance loses the mouse lock, such as |
| 37 * when the user presses the ESC key. | 37 * when the user presses the ESC key. |
| 38 * | 38 * |
| 39 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 39 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 40 * of a module. | 40 * of a module. |
| 41 */ | 41 */ |
| 42 void (*MouseLockLost)(PP_Instance instance); | 42 void (*MouseLockLost)(PP_Instance instance); |
| 43 }; | 43 }; |
| 44 |
| 45 typedef struct PPP_MouseLock_1_0 PPP_MouseLock; |
| 44 /** | 46 /** |
| 45 * @} | 47 * @} |
| 46 */ | 48 */ |
| 47 | 49 |
| 48 #endif /* PPAPI_C_PPP_MOUSE_LOCK_H_ */ | 50 #endif /* PPAPI_C_PPP_MOUSE_LOCK_H_ */ |
| 49 | 51 |
| OLD | NEW |