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. 4 */ 5 6/* From ppp_mouse_lock.idl modified Wed Dec 21 19:08:34 2011. */ 7 8#ifndef PPAPI_C_PPP_MOUSE_LOCK_H_ 9#define PPAPI_C_PPP_MOUSE_LOCK_H_ 10 11#include "ppapi/c/pp_instance.h" 12#include "ppapi/c/pp_macros.h" 13#include "ppapi/c/pp_stdint.h" 14 15#define PPP_MOUSELOCK_INTERFACE_1_0 "PPP_MouseLock;1.0" 16#define PPP_MOUSELOCK_INTERFACE PPP_MOUSELOCK_INTERFACE_1_0 17 18/** 19 * @file 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 22 * browser. 23 */ 24 25 26/** 27 * @addtogroup Interfaces 28 * @{ 29 */ 30/** 31 * The <code>PPP_MouseLock</code> interface contains a function that you must 32 * implement to receive mouse lock events from the browser. 33 */ 34struct PPP_MouseLock_1_0 { 35 /** 36 * MouseLockLost() is called when the instance loses the mouse lock, such as 37 * when the user presses the ESC key. 38 * 39 * @param[in] instance A <code>PP_Instance</code> identifying one instance 40 * of a module. 41 */ 42 void (*MouseLockLost)(PP_Instance instance); 43}; 44 45typedef struct PPP_MouseLock_1_0 PPP_MouseLock; 46/** 47 * @} 48 */ 49 50#endif /* PPAPI_C_PPP_MOUSE_LOCK_H_ */ 51 52