summaryrefslogtreecommitdiffstats
path: root/ppapi/api/ppp_mouse_lock.idl
blob: f54543bd77896065e9b7aa215a865c0892ab6eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * This file defines the <code>PPP_MouseLock</code> interface containing a 
 * function that you must implement to receive mouse lock events from the
 * browser. 
 */

label Chrome {
  M16 = 1.0
};

/**
 * The <code>PPP_MouseLock</code> interface contains a function that you must
 * implement to receive mouse lock events from the browser.
 */
interface PPP_MouseLock {
  /**
   * MouseLockLost() is called when the instance loses the mouse lock, such as   
   * when the user presses the ESC key.
   *
   * @param[in] instance A <code>PP_Instance</code> identifying one instance
   * of a module.
   */
  void MouseLockLost([in] PP_Instance instance);
};