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

Unified Diff: webkit/plugins/ppapi/resource_creation_impl.cc

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: webkit/plugins/ppapi/resource_creation_impl.cc
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
index 36b652cfd6b5c6b5d1b765f65938f727a078799c..4afa028401a1e0b9bbb6d1b9c410bcf6d4bdee67 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.cc
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc
@@ -190,6 +190,7 @@ PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent(
PP_TimeTicks time_stamp,
uint32_t modifiers,
uint32_t key_code,
+ uint32_t usb_scan_code,
struct PP_Var character_text) {
if (type != PP_INPUTEVENT_TYPE_RAWKEYDOWN &&
type != PP_INPUTEVENT_TYPE_KEYDOWN &&
@@ -202,6 +203,7 @@ PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent(
data.event_time_stamp = time_stamp;
data.event_modifiers = modifiers;
data.key_code = key_code;
+ data.usb_scan_code = usb_scan_code;
if (character_text.type == PP_VARTYPE_STRING) {
StringVar* string_var = StringVar::FromPPVar(character_text);
if (!string_var)

Powered by Google App Engine
This is Rietveld 408576698