| OLD | NEW |
| (Empty) | |
| 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 /** |
| 7 * This file defines the <code>PPB_KeyboardInputEvent_Dev</code> interface, |
| 8 * which provides access to the raw USB scancodes for key input events. |
| 9 */ |
| 10 |
| 11 label Chrome { |
| 12 M19 = 0.1 |
| 13 }; |
| 14 |
| 15 /** |
| 16 * The <code>PPB_KeyboardInputEvent_Dev</code> interface is an extension to the |
| 17 * PPB_KeyboardInputEvent</code> interface that provides |
| 18 */ |
| 19 [version=0.1, macro="PPB_KEYBOARD_INPUT_EVENT_DEV_INTERFACE"] |
| 20 interface PPB_KeyboardInputEvent_Dev { |
| 21 /** |
| 22 * This sets the usb_scan_code in the given <code>resource</code>. It is |
| 23 * intended that this method be called immediately after any call to |
| 24 * <code>Create</code>. |
| 25 * |
| 26 * When GetUsbScanCode moves out of this _Dev interface, then the |
| 27 * <code>usb_scan_code</code> param will be added to the <code>Create</code> |
| 28 * method and this method will be removed. |
| 29 * |
| 30 * @param[in] key_event A <code>PP_Resource</code> created by |
| 31 * <code>PPB_KeyboardInputEvent</code>'s <code>Create</code> method. |
| 32 * |
| 33 * @param[in] usb_scan_code The USB scancode to assign for this |
| 34 * <code>key_event</code>. |
| 35 * |
| 36 * @return <code>PP_TRUE</code> if the usb scancode was set successfully. |
| 37 */ |
| 38 PP_Bool SetUsbScanCode([in] PP_Resource key_event, |
| 39 [in] uint32_t usb_scan_code); |
| 40 |
| 41 /** |
| 42 * GetUsbScanCode() returns the USB scancode that corresponds to the key |
| 43 * that generated this keyboard event. |
| 44 * |
| 45 * @param[in] key_event A <code>PP_Resource</code> corresponding to a |
| 46 * keyboard event. |
| 47 * |
| 48 * @return The USB scancode field for the keyboard event. |
| 49 */ |
| 50 uint32_t GetUsbScanCode([in] PP_Resource key_event); |
| 51 }; |
| OLD | NEW |