Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: ppapi/c/ppb_mouse_lock.h

Issue 8989006: Update PPAPI IDL generator to define versioned structs, and unversioned typedef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for line-wrap. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppb_messaging.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ppb_mouse_lock.idl modified Mon Nov 28 10:59:14 2011. */ 6 /* From ppb_mouse_lock.idl modified Wed Dec 21 19:08:34 2011. */
7 7
8 #ifndef PPAPI_C_PPB_MOUSE_LOCK_H_ 8 #ifndef PPAPI_C_PPB_MOUSE_LOCK_H_
9 #define PPAPI_C_PPB_MOUSE_LOCK_H_ 9 #define PPAPI_C_PPB_MOUSE_LOCK_H_
10 10
11 #include "ppapi/c/pp_completion_callback.h" 11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 15
16 #define PPB_MOUSELOCK_INTERFACE_1_0 "PPB_MouseLock;1.0" 16 #define PPB_MOUSELOCK_INTERFACE_1_0 "PPB_MouseLock;1.0"
(...skipping 10 matching lines...) Expand all
27 * @addtogroup Interfaces 27 * @addtogroup Interfaces
28 * @{ 28 * @{
29 */ 29 */
30 /** 30 /**
31 * The <code>PPB_MouseLock</code> interface is implemented by the browser. 31 * The <code>PPB_MouseLock</code> interface is implemented by the browser.
32 * This interface provides a way of locking the target of mouse events to a 32 * This interface provides a way of locking the target of mouse events to a
33 * single module instance and removing the cursor from view. This mode is 33 * single module instance and removing the cursor from view. This mode is
34 * useful for certain classes of applications, especially first-person 34 * useful for certain classes of applications, especially first-person
35 * perspective 3D applications and 3D modeling software. 35 * perspective 3D applications and 3D modeling software.
36 */ 36 */
37 struct PPB_MouseLock { 37 struct PPB_MouseLock_1_0 {
38 /** 38 /**
39 * LockMouse() requests the mouse to be locked. The browser will permit mouse 39 * LockMouse() requests the mouse to be locked. The browser will permit mouse
40 * lock only while the tab is in fullscreen mode. 40 * lock only while the tab is in fullscreen mode.
41 * 41 *
42 * While the mouse is locked, the cursor is implicitly hidden from the user. 42 * While the mouse is locked, the cursor is implicitly hidden from the user.
43 * Any movement of the mouse will generate a 43 * Any movement of the mouse will generate a
44 * <code>PP_INPUTEVENT_TYPE_MOUSEMOVE</code> event. The 44 * <code>PP_INPUTEVENT_TYPE_MOUSEMOVE</code> event. The
45 * <code>GetPosition()</code> function in the <code>PPB_MouseInputEvent</code> 45 * <code>GetPosition()</code> function in the <code>PPB_MouseInputEvent</code>
46 * interface reports the last known mouse position just as mouse lock was 46 * interface reports the last known mouse position just as mouse lock was
47 * entered. The <code>GetMovement()</code> function provides relative movement 47 * entered. The <code>GetMovement()</code> function provides relative movement
(...skipping 18 matching lines...) Expand all
66 * UnlockMouse() causes the mouse to be unlocked, allowing it to track user 66 * UnlockMouse() causes the mouse to be unlocked, allowing it to track user
67 * movement again. This is an asynchronous operation. The module instance 67 * movement again. This is an asynchronous operation. The module instance
68 * will be notified using the <code>PPP_MouseLock</code> interface when it 68 * will be notified using the <code>PPP_MouseLock</code> interface when it
69 * has lost the mouse lock. 69 * has lost the mouse lock.
70 * 70 *
71 * @param[in] instance A <code>PP_Instance</code> identifying one instance 71 * @param[in] instance A <code>PP_Instance</code> identifying one instance
72 * of a module. 72 * of a module.
73 */ 73 */
74 void (*UnlockMouse)(PP_Instance instance); 74 void (*UnlockMouse)(PP_Instance instance);
75 }; 75 };
76
77 typedef struct PPB_MouseLock_1_0 PPB_MouseLock;
76 /** 78 /**
77 * @} 79 * @}
78 */ 80 */
79 81
80 #endif /* PPAPI_C_PPB_MOUSE_LOCK_H_ */ 82 #endif /* PPAPI_C_PPB_MOUSE_LOCK_H_ */
81 83
OLDNEW
« no previous file with comments | « ppapi/c/ppb_messaging.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698