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

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

Issue 8295023: Move PPB/PPP_MouseLock out of dev/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and resolve conflicts. Created 9 years, 2 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/dev/ppp_mouse_lock_dev.h ('k') | ppapi/c/ppp_mouse_lock.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 dev/ppb_mouse_lock_dev.idl modified Tue Sep 6 16:06:47 2011. */ 6 /* From ppb_mouse_lock.idl modified Fri Oct 14 18:59:25 2011. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_MOUSE_LOCK_DEV_H_ 8 #ifndef PPAPI_C_PPB_MOUSE_LOCK_H_
9 #define PPAPI_C_DEV_PPB_MOUSE_LOCK_DEV_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_DEV_INTERFACE_0_1 "PPB_MouseLock(Dev);0.1" 16 #define PPB_MOUSELOCK_INTERFACE_1_0 "PPB_MouseLock;1.0"
17 #define PPB_MOUSELOCK_DEV_INTERFACE PPB_MOUSELOCK_DEV_INTERFACE_0_1 17 #define PPB_MOUSELOCK_INTERFACE PPB_MOUSELOCK_INTERFACE_1_0
18 18
19 /** 19 /**
20 * @file 20 * @file
21 * This file defines the <code>PPB_MouseLock_Dev</code> interface. 21 * This file defines the <code>PPB_MouseLock</code> interface.
22 */ 22 */
23 23
24 24
25 /** 25 /**
26 * @addtogroup Interfaces 26 * @addtogroup Interfaces
27 * @{ 27 * @{
28 */ 28 */
29 /** 29 /**
30 * The <code>PPB_MouseLock_Dev</code> interface is implemented by the browser. 30 * The <code>PPB_MouseLock</code> interface is implemented by the browser.
31 * It provides a way of locking the target of mouse events to a single plugin 31 * It provides a way of locking the target of mouse events to a single plugin
32 * instance and removing the cursor from view. This is a useful input mode for 32 * instance and removing the cursor from view. This is a useful input mode for
33 * certain classes of applications, especially first person perspective 3D 33 * certain classes of applications, especially first person perspective 3D
34 * applications and 3D modelling software. 34 * applications and 3D modelling software.
35 */ 35 */
36 struct PPB_MouseLock_Dev { 36 struct PPB_MouseLock {
37 /** 37 /**
38 * Requests the mouse to be locked. The browser will permit mouse lock only 38 * Requests the mouse to be locked. The browser will permit mouse lock only
39 * while the tab is in fullscreen mode. 39 * while the tab is in fullscreen mode.
40 * 40 *
41 * While the mouse is locked, the cursor is implicitly hidden from the user. 41 * While the mouse is locked, the cursor is implicitly hidden from the user.
42 * Any movement of the mouse will generate a 42 * Any movement of the mouse will generate a
43 * <code>PP_INPUTEVENT_TYPE_MOUSEMOVE</code>. The <code>GetPosition</code> of 43 * <code>PP_INPUTEVENT_TYPE_MOUSEMOVE</code>. The <code>GetPosition</code> of
44 * <code>PPB_MouseInputEvent</code> reports the last known mouse position just 44 * <code>PPB_MouseInputEvent</code> reports the last known mouse position just
45 * as mouse lock was entered; while the <code>GetMovement</code> provides 45 * as mouse lock was entered; while the <code>GetMovement</code> provides
46 * relative movement information, which indicates what the change in position 46 * relative movement information, which indicates what the change in position
(...skipping 19 matching lines...) Expand all
66 * 66 *
67 * @param[in] instance A <code>PP_Instance</code> identifying one instance 67 * @param[in] instance A <code>PP_Instance</code> identifying one instance
68 * of a module. 68 * of a module.
69 */ 69 */
70 void (*UnlockMouse)(PP_Instance instance); 70 void (*UnlockMouse)(PP_Instance instance);
71 }; 71 };
72 /** 72 /**
73 * @} 73 * @}
74 */ 74 */
75 75
76 #endif /* PPAPI_C_DEV_PPB_MOUSE_LOCK_DEV_H_ */ 76 #endif /* PPAPI_C_PPB_MOUSE_LOCK_H_ */
77 77
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppp_mouse_lock_dev.h ('k') | ppapi/c/ppp_mouse_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698