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

Unified Diff: ppapi/c/ppb_input_event.h

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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/ppb_input_event.h
diff --git a/ppapi/c/ppb_input_event.h b/ppapi/c/ppb_input_event.h
index 7d948615c1d252babf5ef6099a6c7af8188c0f72..e34fb81316aa8cbb8104fc08c7e4740c077b0ab5 100644
--- a/ppapi/c/ppb_input_event.h
+++ b/ppapi/c/ppb_input_event.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_input_event.idl modified Mon Nov 14 10:36:01 2011. */
+/* From ppb_input_event.idl modified Mon Feb 6 17:00:27 2012. */
#ifndef PPAPI_C_PPB_INPUT_EVENT_H_
#define PPAPI_C_PPB_INPUT_EVENT_H_
@@ -233,7 +233,15 @@ typedef enum {
*
* Request this input event class if you allow on-the-spot IME input.
*/
- PP_INPUTEVENT_CLASS_IME = 1 << 4
+ PP_INPUTEVENT_CLASS_IME = 1 << 4,
+ /**
+ * Requests low-level keyboard events. Instead of Windows virtual key code,
+ * this will return USB scan codes for each key press.
+ *
+ * As with PP_INPUTEVENT_CLASS_KEYBOARD, you will usually want to request
+ * filtered mode so you can pass on the events.
+ */
+ PP_INPUTEVENT_CLASS_LOWLEVEL_KEYBOARD_Dev = 1 << 5
} PP_InputEvent_Class;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Class, 4);
/**

Powered by Google App Engine
This is Rietveld 408576698