Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_flash_font_file.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 The Chromium 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 
6 /* From private/ppb_flash_font_file.idl modified Wed Nov 8 11:16:43 2017. */
7 
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FONT_FILE_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_FONT_FILE_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_resource.h"
15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_var.h"
19 
20 #define PPB_FLASH_FONTFILE_INTERFACE_0_1 "PPB_Flash_FontFile;0.1"
21 #define PPB_FLASH_FONTFILE_INTERFACE_0_2 "PPB_Flash_FontFile;0.2"
22 #define PPB_FLASH_FONTFILE_INTERFACE PPB_FLASH_FONTFILE_INTERFACE_0_2
23 
35  /* Returns a resource identifying a font file corresponding to the given font
36  * request after applying the browser-specific fallback.
37  */
38  PP_Resource (*Create)(
39  PP_Instance instance,
40  const struct PP_BrowserFont_Trusted_Description* description,
41  PP_PrivateFontCharset charset);
42  /* Determines if a given resource is Flash font file.
43  */
44  PP_Bool (*IsFlashFontFile)(PP_Resource resource);
45  /* Returns the requested font table.
46  * |output_length| should pass in the size of |output|. And it will return
47  * the actual length of returned data. |output| could be NULL in order to
48  * query the size of the buffer size needed. In that case, the input value of
49  * |output_length| is ignored.
50  * Note: it is Linux only and fails directly on other platforms.
51  */
52  PP_Bool (*GetFontTable)(PP_Resource font_file,
53  uint32_t table,
54  void* output,
55  uint32_t* output_length);
60 };
61 
63 
65  PP_Resource (*Create)(
66  PP_Instance instance,
67  const struct PP_BrowserFont_Trusted_Description* description,
68  PP_PrivateFontCharset charset);
69  PP_Bool (*IsFlashFontFile)(PP_Resource resource);
70  PP_Bool (*GetFontTable)(PP_Resource font_file,
71  uint32_t table,
72  void* output,
73  uint32_t* output_length);
74 };
79 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_FONT_FILE_H_ */
80 
PP_Bool(* IsSupportedForWindows)(void)
Definition: ppb_flash_font_file.h:59
int32_t PP_Resource
Definition: pp_resource.h:40
Definition: ppb_browser_font_trusted.h:77
Definition: ppb_flash_font_file.h:34
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30
Definition: ppb_flash_font_file.h:64