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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_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: 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/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
index b56797bfe1c2b2f1b806c70d185656db84c28413..d01536fa004cb065e50332a19433f2d5be0c047a 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
@@ -8,6 +8,7 @@
#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/shared/ppapi_proxy/input_event_data.h"
#include "native_client/src/shared/ppapi_proxy/plugin_resource.h"
+#include "ppapi/c/dev/ppb_keyboard_input_event_dev.h"
#include "ppapi/c/ppb_input_event.h"
namespace ppapi_proxy {
@@ -31,6 +32,7 @@ class PluginInputEvent : public PluginResource {
static const PPB_MouseInputEvent* GetMouseInterface1_1();
static const PPB_WheelInputEvent* GetWheelInterface();
static const PPB_KeyboardInputEvent* GetKeyboardInterface();
+ static const PPB_KeyboardInputEvent_Dev* GetKeyboardInterface_Dev();
PP_InputEvent_Type GetType() const;
PP_TimeTicks GetTimeStamp() const;
@@ -48,6 +50,9 @@ class PluginInputEvent : public PluginResource {
uint32_t GetKeyCode() const;
PP_Var GetCharacterText() const;
+ PP_Bool SetUsbScanCode(uint32_t usb_scan_code);
+ uint32_t GetUsbScanCode() const;
+
private:
IMPLEMENT_RESOURCE(PluginInputEvent);
NACL_DISALLOW_COPY_AND_ASSIGN(PluginInputEvent);

Powered by Google App Engine
This is Rietveld 408576698