| Index: ppapi/thunk/ppb_input_event_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_input_event_thunk.cc b/ppapi/thunk/ppb_input_event_thunk.cc
|
| index 388b011a68484fd54e11aed07e4ffc7447e09264..f32ec4ca0b909946a4565278480685c8383927d3 100644
|
| --- a/ppapi/thunk/ppb_input_event_thunk.cc
|
| +++ b/ppapi/thunk/ppb_input_event_thunk.cc
|
| @@ -271,6 +271,27 @@ const PPB_KeyboardInputEvent g_ppb_keyboard_input_event_thunk = {
|
| &GetCharacterText
|
| };
|
|
|
| +// _Dev interface.
|
| +
|
| +PP_Bool SetUsbScanCode(PP_Resource key_event, uint32_t usb_scan_code) {
|
| + EnterInputEvent enter(key_event, true);
|
| + if (enter.failed())
|
| + return PP_FALSE;
|
| + return enter.object()->SetUsbScanCode(usb_scan_code);
|
| +}
|
| +
|
| +uint32_t GetUsbScanCode(PP_Resource key_event) {
|
| + EnterInputEvent enter(key_event, true);
|
| + if (enter.failed())
|
| + return 0;
|
| + return enter.object()->GetUsbScanCode();
|
| +}
|
| +
|
| +const PPB_KeyboardInputEvent_Dev g_ppb_keyboard_input_event_dev_thunk = {
|
| + &SetUsbScanCode,
|
| + &GetUsbScanCode,
|
| +};
|
| +
|
| // Composition -----------------------------------------------------------------
|
|
|
| PP_Bool IsIMEInputEvent(PP_Resource resource) {
|
| @@ -347,6 +368,11 @@ const PPB_KeyboardInputEvent_1_0* GetPPB_KeyboardInputEvent_1_0_Thunk() {
|
| return &g_ppb_keyboard_input_event_thunk;
|
| }
|
|
|
| +const PPB_KeyboardInputEvent_Dev_0_1*
|
| + GetPPB_KeyboardInputEvent_Dev_0_1_Thunk() {
|
| + return &g_ppb_keyboard_input_event_dev_thunk;
|
| +}
|
| +
|
| const PPB_WheelInputEvent_1_0* GetPPB_WheelInputEvent_1_0_Thunk() {
|
| return &g_ppb_wheel_input_event_thunk;
|
| }
|
|
|