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

Unified 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: Add GetUsbScanCode_Dev to Pepper/NaCl interface 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/api/ppb_input_event.idl
diff --git a/ppapi/api/ppb_input_event.idl b/ppapi/api/ppb_input_event.idl
index 03d5d70d792c2356d9c968afdc0d62ab48321db7..819e9b0d9841935da80ccefaa0da5d85bc13a631 100644
--- a/ppapi/api/ppb_input_event.idl
+++ b/ppapi/api/ppb_input_event.idl
@@ -682,6 +682,9 @@ interface PPB_KeyboardInputEvent {
* <code>keyCode</code> field. Chrome populates this with the Windows-style
* Virtual Key code of the key.
*
+ * @param[in] usb_scan_code This value reflects the USB scancode that
+ * generated this keyboard event.
+ *
* @param[in] character_text This value represents the typed character as a
* UTF-8 string.
*
@@ -693,6 +696,7 @@ interface PPB_KeyboardInputEvent {
[in] PP_TimeTicks time_stamp,
[in] uint32_t modifiers,
[in] uint32_t key_code,
+ [in] uint32_t usb_scan_code,
[in] PP_Var character_text);
/**
@@ -716,6 +720,17 @@ interface PPB_KeyboardInputEvent {
uint32_t GetKeyCode([in] PP_Resource key_event);
/**
+ * GetUsbScanCode_Dev() returns the USB scancode that corresponds to the key
+ * that generated this keyboard event.
+ *
+ * @param[in] key_event A <code>PP_Resource</code> corresponding to a
+ * keyboard event.
+ *
+ * @return The USB scancode field for the keyboard event.
+ */
+ uint32_t GetUsbScanCode_Dev([in] PP_Resource key_event);
brettw 2012/02/09 19:19:44 We need to keep backwards compat for old users of
Wez 2012/02/16 19:18:51 Yes, the plan is to have a new dev interface with
garykac 2012/02/16 20:45:03 Patchset 5 and beyond have the updated code (where
+
+ /**
* GetCharacterText() returns the typed character as a UTF-8 string for the
* given character event.
*
« no previous file with comments | « no previous file | ppapi/c/ppb_input_event.h » ('j') | ppapi/native_client/src/shared/ppapi_proxy/input_event_data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698