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_Font calls from the plugin. |
| 6 # See ppapi/c/dev/ppb_font_dev.h for interface details. |
| 7 { |
| 8 'name': 'PpbFontRpc', |
| 9 'rpcs': [ |
| 10 {'name': 'PPB_Font_GetFontFamilies', |
| 11 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 12 ], |
| 13 'outputs': [['font_families', 'char[]'], # PP_Var |
| 14 ] |
| 15 }, |
| 16 {'name': 'PPB_Font_Create', |
| 17 'inputs': [['instance', 'PP_Instance'], # PP_Instance |
| 18 ['description', 'char[]'], # PP_FontDescription_Dev |
| 19 ['face', 'char[]'], # PP_Var, description->face |
| 20 ], |
| 21 'outputs': [['font', 'PP_Resource'], # PP_Resource |
| 22 ] |
| 23 }, |
| 24 {'name': 'PPB_Font_IsFont', |
| 25 'inputs': [['resource', 'PP_Resource'], # PP_Resource |
| 26 ], |
| 27 'outputs': [['is_font', 'int32_t'], # PP_Bool |
| 28 ] |
| 29 }, |
| 30 {'name': 'PPB_Font_Describe', |
| 31 'inputs': [['font', 'PP_Resource'], # PP_Resource |
| 32 ], |
| 33 'outputs': [['description', 'char[]'], # PP_FontDescription_Dev |
| 34 ['face', 'char[]'], # PP_Var, description->face |
| 35 ['metrics', 'char[]'], # PP_FontMetrics_Dev |
| 36 ['success', 'int32_t'], # PP_Bool |
| 37 ] |
| 38 }, |
| 39 {'name': 'PPB_Font_DrawTextAt', |
| 40 'inputs': [['font', 'PP_Resource'], # PP_Resource |
| 41 ['image_data', 'PP_Resource'], # PP_Resource |
| 42 ['text_run', 'char[]'], # PP_TextRun_Dev |
| 43 ['text', 'char[]'], # PP_Var, text_run->text |
| 44 ['position', 'char[]'], # PP_Point |
| 45 ['color', 'int32_t'], # uint32_t |
| 46 ['clip', 'char[]'], # PP_Rect |
| 47 ['image_data_is_opaque', 'int32_t'], # PP_Bool |
| 48 ], |
| 49 'outputs': [['success', 'int32_t'], # PP_Bool |
| 50 ] |
| 51 }, |
| 52 {'name': 'PPB_Font_MeasureText', |
| 53 'inputs': [['font', 'PP_Resource'], # PP_Resource |
| 54 ['text_run', 'char[]'], # PP_TextRun_Dev |
| 55 ['text', 'char[]'], # PP_Var, text_run->text |
| 56 ], |
| 57 'outputs': [['width', 'int32_t'], # int32_t |
| 58 ] |
| 59 }, |
| 60 {'name': 'PPB_Font_CharacterOffsetForPixel', |
| 61 'inputs': [['font', 'PP_Resource'], # PP_Resource |
| 62 ['text_run', 'char[]'], # PP_TextRun_Dev |
| 63 ['text', 'char[]'], # PP_Var, text_run->text |
| 64 ['pixel_position', 'int32_t'], # int32_t |
| 65 ], |
| 66 'outputs': [['offset', 'int32_t'], # uint32_t |
| 67 ] |
| 68 }, |
| 69 {'name': 'PPB_Font_PixelOffsetForCharacter', |
| 70 'inputs': [['font', 'PP_Resource'], # PP_Resource |
| 71 ['text_run', 'char[]'], # PP_TextRun_Dev |
| 72 ['text', 'char[]'], # PP_Var, text_run->text |
| 73 ['char_offset', 'int32_t'], # uint32_t |
| 74 ], |
| 75 'outputs': [['offset', 'int32_t'], # int32_t |
| 76 ] |
| 77 }, |
| 78 ] |
| 79 } |
OLD | NEW |