| OLD | NEW |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 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_Printing calls to the plugin. | 5 # RPC methods used to implement PPP_Printing calls to the plugin. |
| 6 # See ppapi/c/dev/ppp_printing_dev.h for interface details. | 6 # See ppapi/c/dev/ppp_printing_dev.h for interface details. |
| 7 { | 7 { |
| 8 'name': 'PppPrintingRpc', | 8 'name': 'PppPrintingRpc', |
| 9 'rpcs': [ | 9 'rpcs': [ |
| 10 {'name': 'PPP_Printing_QuerySupportedFormats', | 10 {'name': 'PPP_Printing_QuerySupportedFormats', |
| 11 'inputs': [['instance', 'PP_Instance'], | 11 'inputs': [['instance', 'PP_Instance'], |
| 12 ], | 12 ], |
| 13 'outputs': [['formats', 'char[]'], # PP_PrintOutputFormat_Dev
array | 13 'outputs': [['formats', 'int32_t'], # uint32_t |
| 14 ['format_count', 'int32_t'], # uint32_t | |
| 15 ] | 14 ] |
| 16 }, | 15 }, |
| 17 {'name': 'PPP_Printing_Begin', | 16 {'name': 'PPP_Printing_Begin', |
| 18 'inputs': [['instance', 'PP_Instance'], | 17 'inputs': [['instance', 'PP_Instance'], |
| 19 ['print_settings', 'char[]'], # PP_PrintSettings_Dev | 18 ['print_settings', 'char[]'], # PP_PrintSettings_Dev |
| 20 ], | 19 ], |
| 21 'outputs': [['pages_required', 'int32_t'], | 20 'outputs': [['pages_required', 'int32_t'], |
| 22 ] | 21 ] |
| 23 }, | 22 }, |
| 24 {'name': 'PPP_Printing_PrintPages', | 23 {'name': 'PPP_Printing_PrintPages', |
| 25 'inputs': [['instance', 'PP_Instance'], | 24 'inputs': [['instance', 'PP_Instance'], |
| 26 ['page_ranges', 'char[]'], # PP_PrintPageNumberRange_
Dev | 25 ['page_ranges', 'char[]'], # PP_PrintPageNumberRange_
Dev |
| 27 ['page_range_count', 'int32_t'], # uint32_t | 26 ['page_range_count', 'int32_t'], # uint32_t |
| 28 ], | 27 ], |
| 29 'outputs': [['image_data', 'PP_Resource'], | 28 'outputs': [['image_data', 'PP_Resource'], |
| 30 ] | 29 ] |
| 31 }, | 30 }, |
| 32 {'name': 'PPP_Printing_End', | 31 {'name': 'PPP_Printing_End', |
| 33 'inputs': [['instance', 'PP_Instance'], | 32 'inputs': [['instance', 'PP_Instance'], |
| 34 ], | 33 ], |
| 35 'outputs': [ | 34 'outputs': [ |
| 36 ] | 35 ] |
| 37 }, | 36 }, |
| 38 ] | 37 ] |
| 39 } | 38 } |
| OLD | NEW |