| 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 Fri Oct 14 19:00:26 2011. */ | 6 /* From ppp_mouse_lock.idl modified Tue Oct 18 16:19:04 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. | 20 * This file defines the <code>PPP_MouseLock</code> interface. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @addtogroup Interfaces | 25 * @addtogroup Interfaces |
| 26 * @{ | 26 * @{ |
| 27 */ | 27 */ |
| 28 /** | 28 /** |
| 29 * The <code>PPP_MouseLock</code> interface contains pointers to functions | 29 * The <code>PPP_MouseLock</code> interface contains pointers to functions |
| 30 * that you must implement to receive mouse lock events from the browser. | 30 * that you must implement to receive mouse lock events from the browser. |
| 31 */ | 31 */ |
| 32 struct PPP_MouseLock { | 32 struct PPP_MouseLock_1_0 { |
| 33 /** | 33 /** |
| 34 * Called when the instance loses the mouse lock, e.g. because the user | 34 * Called when the instance loses the mouse lock, e.g. because the user |
| 35 * pressed the ESC key. | 35 * pressed the ESC key. |
| 36 * | 36 * |
| 37 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 37 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 38 * of a module. | 38 * of a module. |
| 39 */ | 39 */ |
| 40 void (*MouseLockLost)(PP_Instance instance); | 40 void (*MouseLockLost)(PP_Instance instance); |
| 41 }; | 41 }; |
| 42 |
| 43 typedef struct PPP_MouseLock_1_0 PPP_MouseLock; |
| 42 /** | 44 /** |
| 43 * @} | 45 * @} |
| 44 */ | 46 */ |
| 45 | 47 |
| 46 #endif /* PPAPI_C_PPP_MOUSE_LOCK_H_ */ | 48 #endif /* PPAPI_C_PPP_MOUSE_LOCK_H_ */ |
| 47 | 49 |
| OLD | NEW |