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

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: 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/c/ppb_input_event.h
diff --git a/ppapi/c/ppb_input_event.h b/ppapi/c/ppb_input_event.h
index 7d948615c1d252babf5ef6099a6c7af8188c0f72..b7f2b6e279af9fc6f31fb6ffa414c8d536bce107 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 Wed Feb 8 13:23:45 2012. */
#ifndef PPAPI_C_PPB_INPUT_EVENT_H_
#define PPAPI_C_PPB_INPUT_EVENT_H_
@@ -661,6 +661,9 @@ struct PPB_KeyboardInputEvent_1_0 {
* <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.
*
@@ -672,6 +675,7 @@ struct PPB_KeyboardInputEvent_1_0 {
PP_TimeTicks time_stamp,
uint32_t modifiers,
uint32_t key_code,
+ uint32_t usb_scan_code,
struct PP_Var character_text);
/**
* IsKeyboardInputEvent() determines if a resource is a keyboard event.
@@ -692,6 +696,16 @@ struct PPB_KeyboardInputEvent_1_0 {
*/
uint32_t (*GetKeyCode)(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)(PP_Resource key_event);
+ /**
* GetCharacterText() returns the typed character as a UTF-8 string for the
* given character event.
*

Powered by Google App Engine
This is Rietveld 408576698