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

Unified Diff: ppapi/shared_impl/ppb_input_event_shared.h

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo (byte -> bit) 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/shared_impl/ppb_input_event_shared.h
diff --git a/ppapi/shared_impl/ppb_input_event_shared.h b/ppapi/shared_impl/ppb_input_event_shared.h
index 1a297506ce21ea2a117dae81d22f4a5d0a36ddbb..a5ea55646b50337b9deacbf56b5462b35297aa80 100644
--- a/ppapi/shared_impl/ppb_input_event_shared.h
+++ b/ppapi/shared_impl/ppb_input_event_shared.h
@@ -40,6 +40,7 @@ struct PPAPI_SHARED_EXPORT InputEventData {
bool wheel_scroll_by_page;
uint32_t key_code;
+ uint32_t usb_scan_code;
std::string character_text;
@@ -84,6 +85,8 @@ class PPAPI_SHARED_EXPORT PPB_InputEvent_Shared
virtual PP_Bool GetWheelScrollByPage() OVERRIDE;
virtual uint32_t GetKeyCode() OVERRIDE;
virtual PP_Var GetCharacterText() OVERRIDE;
+ virtual PP_Bool SetUsbScanCode(uint32_t usb_scan_code) OVERRIDE;
+ virtual uint32_t GetUsbScanCode() OVERRIDE;
virtual uint32_t GetIMESegmentNumber() OVERRIDE;
virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE;
virtual int32_t GetIMETargetSegment() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698