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 PPB_Widget calls from the plugin. |
| 6 # See ppapi/c/dev/ppb_widget_dev.h for interface details. |
| 7 { |
| 8 'name': 'PpbWidgetRpc', |
| 9 'rpcs': [ |
| 10 {'name': 'PPB_Widget_IsWidget', |
| 11 'inputs': [['resource', 'PP_Resource'], |
| 12 ], |
| 13 'outputs': [['is_widget', 'int32_t'], # PP_Bool |
| 14 ] |
| 15 }, |
| 16 {'name': 'PPB_Widget_Paint', |
| 17 'inputs': [['widget', 'PP_Resource'], |
| 18 ['rect', 'char[]'], # PP_Rect |
| 19 ['image', 'PP_Resource'], |
| 20 ], |
| 21 'outputs': [['success', 'int32_t'], # PP_Bool |
| 22 ] |
| 23 }, |
| 24 {'name': 'PPB_Widget_HandleEvent', |
| 25 'inputs': [['widget', 'PP_Resource'], |
| 26 ['event', 'PP_Resource'], # PP_InputEvent |
| 27 ], |
| 28 'outputs': [['handled', 'int32_t'], # PP_Bool |
| 29 ] |
| 30 }, |
| 31 {'name': 'PPB_Widget_GetLocation', |
| 32 'inputs': [['widget', 'PP_Resource'], |
| 33 ], |
| 34 'outputs': [['location', 'char[]'], # PP_Rect |
| 35 ['visible', 'int32_t'], # PP_Bool |
| 36 ] |
| 37 }, |
| 38 {'name': 'PPB_Widget_SetLocation', |
| 39 'inputs': [['widget', 'PP_Resource'], |
| 40 ['location', 'char[]'], # PP_Rect |
| 41 ], |
| 42 'outputs': [ |
| 43 ] |
| 44 }, |
| 45 ] |
| 46 } |
OLD | NEW |