OLD | NEW |
1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # RPC methods used to implement PPP_Instance interface. | 5 # RPC methods used to implement PPP_Instance interface. |
6 # See ppapi/c/ppp_instance.h for interface details. | 6 # See ppapi/c/ppp_instance.h for interface details. |
7 { | 7 { |
8 'name': 'PppInstanceRpc', | 8 'name': 'PppInstanceRpc', |
9 'rpcs': [ | 9 'rpcs': [ |
10 # Generic comment: PPAPI uses Did... apparently to indicate that the | 10 # Generic comment: PPAPI uses Did... apparently to indicate that the |
11 # return value indicates the plugin successfully responded to the | 11 # return value indicates the plugin successfully responded to the |
12 # action requested. | 12 # action requested. |
13 # Sets the instance's parameters. | 13 # Sets the instance's parameters. |
14 {'name': 'PPP_Instance_DidCreate', | 14 {'name': 'PPP_Instance_DidCreate', |
15 'inputs': [['instance', 'int64_t'], # PP_Instance | 15 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
16 ['argc', 'int32_t'], # uint32_t | 16 ['argc', 'int32_t'], # uint32_t |
17 ['argn', 'char[]'], # char*[] | 17 ['argn', 'char[]'], # char*[] |
18 ['argv', 'char[]'], # char*[] | 18 ['argv', 'char[]'], # char*[] |
19 ], | 19 ], |
20 'outputs': [['success', 'int32_t'], # PP_Bool | 20 'outputs': [['success', 'int32_t'], # PP_Bool |
21 ] | 21 ] |
22 }, | 22 }, |
23 # Deletes an instance of a plugin. | 23 # Deletes an instance of a plugin. |
24 {'name': 'PPP_Instance_DidDestroy', | 24 {'name': 'PPP_Instance_DidDestroy', |
25 'inputs': [['instance', 'int64_t'], # PP_Instance | 25 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
26 ], | 26 ], |
27 'outputs': [] | 27 'outputs': [] |
28 }, | 28 }, |
29 # Changes the position, size, or clipping rectangle of the instance. | 29 # Changes the position, size, or clipping rectangle of the instance. |
30 {'name': 'PPP_Instance_DidChangeView', | 30 {'name': 'PPP_Instance_DidChangeView', |
31 'inputs': [['instance', 'int64_t'], # PP_Instance | 31 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
32 ['position', 'int32_t[]'], # PP_Rect* | 32 ['position', 'int32_t[]'], # PP_Rect* |
33 ['clip', 'int32_t[]'], # PP_Rect* | 33 ['clip', 'int32_t[]'], # PP_Rect* |
34 ], | 34 ], |
35 'outputs': [] | 35 'outputs': [] |
36 }, | 36 }, |
37 # Processes a bool indicating that the instance gained or lost focus. | 37 # Processes a bool indicating that the instance gained or lost focus. |
38 {'name': 'PPP_Instance_DidChangeFocus', | 38 {'name': 'PPP_Instance_DidChangeFocus', |
39 'inputs': [['instance', 'int64_t'], # PP_Instance | 39 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
40 ['has_focus', 'bool'], # PP_Bool | 40 ['has_focus', 'bool'], # PP_Bool |
41 ], | 41 ], |
42 'outputs': [] | 42 'outputs': [] |
43 }, | 43 }, |
44 # Processes an event sent to an instance. | 44 # Processes an event sent to an instance. |
45 {'name': 'PPP_Instance_HandleInputEvent', | 45 {'name': 'PPP_Instance_HandleInputEvent', |
46 'inputs': [['instance', 'int64_t'], # PP_Instance | 46 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
47 ['event_data', 'char[]'], # PP_InputEvent* | 47 ['event_data', 'char[]'], # PP_InputEvent* |
48 ], | 48 ], |
49 'outputs': [['success', 'int32_t'] # PP_Bool | 49 'outputs': [['success', 'int32_t'] # PP_Bool |
50 ] | 50 ] |
51 }, | 51 }, |
52 # Passes URL information to a full-frame instance. | 52 # Passes URL information to a full-frame instance. |
53 {'name': 'PPP_Instance_HandleDocumentLoad', | 53 {'name': 'PPP_Instance_HandleDocumentLoad', |
54 'inputs': [['instance', 'int64_t'], # PP_Instance | 54 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
55 ['url_loader', 'int64_t'], # PP_Resource | 55 ['url_loader', 'PP_Resource'], # PP_Resource |
56 ], | 56 ], |
57 'outputs': [['success', 'int32_t'], # PP_Bool | 57 'outputs': [['success', 'int32_t'], # PP_Bool |
58 ] | 58 ] |
59 }, | 59 }, |
60 # Gets the instance's scriptable object. | 60 # Gets the instance's scriptable object. |
61 {'name': 'PPP_Instance_GetInstanceObject', | 61 {'name': 'PPP_Instance_GetInstanceObject', |
62 'inputs': [['instance', 'int64_t'], # PP_Instance | 62 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
63 ], | 63 ], |
64 'outputs': [['capability', 'char[]'], # PP_Var | 64 'outputs': [['capability', 'char[]'], # PP_Var |
65 ] | 65 ] |
66 }, | 66 }, |
67 ] | 67 ] |
68 } | 68 } |
OLD | NEW |