Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: ppapi/api/ppb_input_event.idl

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Auto-set PP_INPUTEVENT_CLASS_KEYBOARD Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/c/ppb_input_event.h » ('j') | webkit/plugins/ppapi/event_conversion.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** 6 /**
7 * This file defines the Input Event interfaces. 7 * This file defines the Input Event interfaces.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 * knows you do not need to handle touch events, it can handle them at a 217 * knows you do not need to handle touch events, it can handle them at a
218 * higher level and achieve higher performance. 218 * higher level and achieve higher performance.
219 */ 219 */
220 PP_INPUTEVENT_CLASS_TOUCH = 1 << 3, 220 PP_INPUTEVENT_CLASS_TOUCH = 1 << 3,
221 221
222 /** 222 /**
223 * Identifies IME composition input events. 223 * Identifies IME composition input events.
224 * 224 *
225 * Request this input event class if you allow on-the-spot IME input. 225 * Request this input event class if you allow on-the-spot IME input.
226 */ 226 */
227 PP_INPUTEVENT_CLASS_IME = 1 << 4 227 PP_INPUTEVENT_CLASS_IME = 1 << 4,
228
229 /**
230 * Requests low-level keyboard events. Instead of Windows virtual key code,
231 * this will return USB scan codes for each key press.
232 *
233 * As with PP_INPUTEVENT_CLASS_KEYBOARD, you will usually want to request
234 * filtered mode so you can pass on the events.
Wez 2012/02/07 23:48:13 nit: I'm not convinced that this is true for low-l
garykac 2012/02/09 14:26:04 No longer applicable.
235 */
236 PP_INPUTEVENT_CLASS_LOWLEVEL_KEYBOARD_Dev = 1 << 5
228 }; 237 };
229 238
230 /** 239 /**
231 * The <code>PPB_InputEvent</code> interface contains pointers to several 240 * The <code>PPB_InputEvent</code> interface contains pointers to several
232 * functions related to generic input events on the browser. 241 * functions related to generic input events on the browser.
233 */ 242 */
234 [version=1.0, macro="PPB_INPUT_EVENT_INTERFACE"] 243 [version=1.0, macro="PPB_INPUT_EVENT_INTERFACE"]
235 interface PPB_InputEvent { 244 interface PPB_InputEvent {
236 /** 245 /**
237 * RequestInputEvent() requests that input events corresponding to the given 246 * RequestInputEvent() requests that input events corresponding to the given
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 * @param[in] character_event A <code>PP_Resource</code> corresponding to a 731 * @param[in] character_event A <code>PP_Resource</code> corresponding to a
723 * keyboard event. 732 * keyboard event.
724 * 733 *
725 * @return A string var representing a single typed character for character 734 * @return A string var representing a single typed character for character
726 * input events. For non-character input events the return value will be an 735 * input events. For non-character input events the return value will be an
727 * undefined var. 736 * undefined var.
728 */ 737 */
729 PP_Var GetCharacterText([in] PP_Resource character_event); 738 PP_Var GetCharacterText([in] PP_Resource character_event);
730 }; 739 };
731 740
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_input_event.h » ('j') | webkit/plugins/ppapi/event_conversion.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698