1 /* Copyright (c) 2012 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.
6 /* From ppp_mouse_lock.idl modified Wed Dec 21 19:08:34 2011. */
8 #ifndef PPAPI_C_PPP_MOUSE_LOCK_H_
9 #define PPAPI_C_PPP_MOUSE_LOCK_H_
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h"
15 #define PPP_MOUSELOCK_INTERFACE_1_0 "PPP_MouseLock;1.0"
16 #define PPP_MOUSELOCK_INTERFACE PPP_MOUSELOCK_INTERFACE_1_0
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
27 * @addtogroup Interfaces
31 * The <code>PPP_MouseLock</code> interface contains a function that you must
32 * implement to receive mouse lock events from the browser.
34 struct PPP_MouseLock_1_0
{
36 * MouseLockLost() is called when the instance loses the mouse lock, such as
37 * when the user presses the ESC key.
39 * @param[in] instance A <code>PP_Instance</code> identifying one instance
42 void (*MouseLockLost
)(PP_Instance instance
);
45 typedef struct PPP_MouseLock_1_0 PPP_MouseLock
;
50 #endif /* PPAPI_C_PPP_MOUSE_LOCK_H_ */