summaryrefslogtreecommitdiffstats
path: root/ppapi/api/ppp_mouse_lock.idl
blob: 07f0ea6eb2576d19645f82e7df0d0bcaf3eae7f0 (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
/* Copyright (c) 2011 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.
 */

label Chrome {
  M16 = 1.0
};

/**
 * The <code>PPP_MouseLock</code> interface contains pointers to functions
 * that you must implement to receive mouse lock events from the browser.
 */
interface PPP_MouseLock {
  /**
   * Called when the instance loses the mouse lock, e.g. because the user
   * pressed the ESC key.
   *
   * @param[in] instance A <code>PP_Instance</code> identifying one instance
   * of a module.
   */
  void MouseLockLost([in] PP_Instance instance);
};