OLD | NEW |
| (Empty) |
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 | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 /* From dev/ppp_mouse_lock_dev.idl modified Tue Sep 6 16:07:16 2011. */ | |
7 | |
8 #ifndef PPAPI_C_DEV_PPP_MOUSE_LOCK_DEV_H_ | |
9 #define PPAPI_C_DEV_PPP_MOUSE_LOCK_DEV_H_ | |
10 | |
11 #include "ppapi/c/pp_instance.h" | |
12 #include "ppapi/c/pp_macros.h" | |
13 #include "ppapi/c/pp_stdint.h" | |
14 | |
15 #define PPP_MOUSELOCK_DEV_INTERFACE_0_1 "PPP_MouseLock(Dev);0.1" | |
16 #define PPP_MOUSELOCK_DEV_INTERFACE PPP_MOUSELOCK_DEV_INTERFACE_0_1 | |
17 | |
18 /** | |
19 * @file | |
20 * This file defines the <code>PPP_MouseLock_Dev</code> interface. | |
21 */ | |
22 | |
23 | |
24 /** | |
25 * @addtogroup Interfaces | |
26 * @{ | |
27 */ | |
28 /** | |
29 * The <code>PPP_MouseLock_Dev</code> interface contains pointers to functions | |
30 * that you must implement to receive mouse lock events from the browser. | |
31 */ | |
32 struct PPP_MouseLock_Dev { | |
33 /** | |
34 * Called when the instance loses the mouse lock, e.g. because the user | |
35 * pressed the ESC key. | |
36 * | |
37 * @param[in] instance A <code>PP_Instance</code> identifying one instance | |
38 * of a module. | |
39 */ | |
40 void (*MouseLockLost)(PP_Instance instance); | |
41 }; | |
42 /** | |
43 * @} | |
44 */ | |
45 | |
46 #endif /* PPAPI_C_DEV_PPP_MOUSE_LOCK_DEV_H_ */ | |
47 | |
OLD | NEW |