OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # RPC methods used to implement the PPB_InputEvent interface. |
| 6 # See ppapi/c/ppb_input_event.h for interface details. |
| 7 { |
| 8 'name': 'PpbInputEventRpc', |
| 9 'rpcs': [ |
| 10 {'name': 'PPB_InputEvent_RequestInputEvents', |
| 11 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 12 ['event_classes', 'int32_t'], # uint32_t, bitfield |
| 13 ['filtered', 'int32_t'] # bool |
| 14 ], |
| 15 'outputs': [['success', 'int32_t'], # pp_error value |
| 16 ] |
| 17 }, |
| 18 {'name': 'PPB_InputEvent_ClearInputEventRequest', |
| 19 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 20 ['event_classes', 'int32_t'] # uint32_t, bitfield |
| 21 ], |
| 22 'outputs': [] |
| 23 }, |
| 24 {'name': 'PPB_InputEvent_CreateMouseInputEvent', |
| 25 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 26 ['type', 'int32_t'], # PP_InputEvent_Type |
| 27 ['time_stamp', 'double'], # PP_TimeTicks |
| 28 ['modifiers', 'int32_t'], # uint32_t |
| 29 ['mouse_button', 'int32_t'], # PP_InputEvent_MouseButton |
| 30 ['mouse_position_x', 'int32_t'], # PP_Point.x |
| 31 ['mouse_position_y', 'int32_t'], # PP_Point.y |
| 32 ['click_count', 'int32_t'] |
| 33 ], |
| 34 'outputs': [['resource_id', 'PP_Resource']] |
| 35 }, |
| 36 {'name': 'PPB_InputEvent_CreateWheelInputEvent', |
| 37 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 38 ['time_stamp', 'double'], # PP_TimeTicks |
| 39 ['modifiers', 'int32_t'], # uint32_t |
| 40 ['wheel_delta_x', 'double'], # PP_FloatPoint.x |
| 41 ['wheel_delta_y', 'double'], # PP_FloatPoint.y |
| 42 ['wheel_ticks_x', 'double'], # PP_FloatPoint.x |
| 43 ['wheel_ticks_y', 'double'], # PP_FloatPoint.y |
| 44 ['scroll_by_page', 'int32_t'] # PP_Bool |
| 45 ], |
| 46 'outputs': [['resource_id', 'PP_Resource']] |
| 47 }, |
| 48 {'name': 'PPB_InputEvent_CreateKeyboardInputEvent', |
| 49 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 50 ['type', 'int32_t'], # PP_InputEvent_Type |
| 51 ['time_stamp', 'double'], # PP_TimeTicks |
| 52 ['modifiers', 'int32_t'], # uint32_t |
| 53 ['key_code', 'int32_t'], # uint32_t |
| 54 ['character_text', 'char[]'] # String PP_Var |
| 55 ], |
| 56 'outputs': [['resource_id', 'PP_Resource']] |
| 57 } |
| 58 |
| 59 ] |
| 60 } |
| 61 |
OLD | NEW |