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_PDF interface. |
| 6 # See ppapi/c/private/ppb_pdf.h for interface details. |
| 7 { |
| 8 'name': 'PpbPdfRpc', |
| 9 'rpcs': [ |
| 10 {'name': 'PPB_PDF_GetLocalizedString', |
| 11 'inputs': [['instance', 'PP_Instance'], |
| 12 ['string_id', 'int32_t'], # PP_ResourceString |
| 13 ], |
| 14 'outputs': [['string', 'char[]'], # PP_Var |
| 15 ] |
| 16 }, |
| 17 {'name': 'PPB_PDF_GetResourceImage', |
| 18 'inputs': [['instance', 'PP_Instance'], |
| 19 ['image_id', 'int32_t'], # PP_ResourceImage |
| 20 ], |
| 21 'outputs': [['image', 'PP_Resource'], |
| 22 ] |
| 23 }, |
| 24 {'name': 'PPB_PDF_GetFontFileWithFallback', |
| 25 'inputs': [['instance', 'PP_Instance'], |
| 26 ['description', 'char[]'], # PP_FontDescription_Dev |
| 27 ['face', 'char[]'], # PP_Var, description->face |
| 28 ['charset', 'int32_t'], # PP_PrivateFontCharset |
| 29 ], |
| 30 'outputs': [['font', 'PP_Resource'], |
| 31 ] |
| 32 }, |
| 33 {'name': 'PPB_PDF_GetFontTableForPrivateFontFile', |
| 34 'inputs': [['font_file', 'PP_Resource'], |
| 35 ['table', 'int32_t'], # uint32_t |
| 36 ], |
| 37 'outputs': [['output', 'char[]'], # void*, uint32_t* |
| 38 ['success', 'int32_t'], # PP_Bool |
| 39 ] |
| 40 }, |
| 41 {'name': 'PPB_PDF_SearchString', |
| 42 'inputs': [['instance', 'PP_Instance'], |
| 43 ['string', 'char[]'], # const unsigned short* |
| 44 ['term', 'char[]'], # const unsigned short* |
| 45 ['case_sensitive', 'int32_t'], # bool |
| 46 ], |
| 47 'outputs': [['results', 'char[]'], # PP_PrivateFindResult** |
| 48 ['count', 'int32_t'], # int* |
| 49 ] |
| 50 }, |
| 51 {'name': 'PPB_PDF_DidStartLoading', |
| 52 'inputs': [['instance', 'PP_Instance'], |
| 53 ], |
| 54 'outputs': [ |
| 55 ] |
| 56 }, |
| 57 {'name': 'PPB_PDF_DidStopLoading', |
| 58 'inputs': [['instance', 'PP_Instance'], |
| 59 ], |
| 60 'outputs': [ |
| 61 ] |
| 62 }, |
| 63 {'name': 'PPB_PDF_SetContentRestriction', |
| 64 'inputs': [['instance', 'PP_Instance'], |
| 65 ['restrictions', 'int32_t'], # int |
| 66 ], |
| 67 'outputs': [ |
| 68 ] |
| 69 }, |
| 70 {'name': 'PPB_PDF_HistogramPDFPageCount', |
| 71 'inputs': [['count', 'int32_t'], |
| 72 ], |
| 73 'outputs': [ |
| 74 ] |
| 75 }, |
| 76 {'name': 'PPB_PDF_UserMetricsRecordAction', |
| 77 'inputs': [['action', 'char[]'], # PP_Var |
| 78 ], |
| 79 'outputs': [ |
| 80 ] |
| 81 }, |
| 82 {'name': 'PPB_PDF_HasUnsupportedFeature', |
| 83 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 84 ], |
| 85 'outputs': [ |
| 86 ] |
| 87 }, |
| 88 {'name': 'PPB_PDF_SaveAs', |
| 89 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 90 ], |
| 91 'outputs': [ |
| 92 ] |
| 93 }, |
| 94 ] |
| 95 } |
OLD | NEW |