Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: ppapi/c/private/ppb_flash_font_file.h

Issue 10905227: Introduce PPB_Flash_Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/pp_private_font_charset.h ('k') | ppapi/c/private/ppb_pdf.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 Mon Oct 08 10:46:09 2012. */
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/dev/ppb_font_dev.h"
12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/pp_var.h"
18 #include "ppapi/c/private/pp_private_font_charset.h"
19
20 #define PPB_FLASH_FONTFILE_INTERFACE_0_1 "PPB_Flash_FontFile;0.1"
21 #define PPB_FLASH_FONTFILE_INTERFACE PPB_FLASH_FONTFILE_INTERFACE_0_1
22
23 /**
24 * @file
25 * This file contains the <code>PPB_Flash_FontFile</code> interface.
26 */
27
28
29 /**
30 * @addtogroup Interfaces
31 * @{
32 */
33 struct PPB_Flash_FontFile_0_1 {
34 /* Returns a resource identifying a font file corresponding to the given font
35 * request after applying the browser-specific fallback.
36 */
37 PP_Resource (*Create)(PP_Instance instance,
38 const struct PP_FontDescription_Dev* description,
39 PP_PrivateFontCharset charset);
40 /* Determines if a given resource is Flash font file.
41 */
42 PP_Bool (*IsFlashFontFile)(PP_Resource resource);
43 /* Returns the requested font table.
44 * |output_length| should pass in the size of |output|. And it will return
45 * the actual length of returned data. |output| could be NULL in order to
46 * query the size of the buffer size needed. In that case, the input value of
47 * |output_length| is ignored.
48 * Note: it is Linux only and fails directly on other platforms.
49 */
50 PP_Bool (*GetFontTable)(PP_Resource font_file,
51 uint32_t table,
52 void* output,
53 uint32_t* output_length);
54 };
55
56 typedef struct PPB_Flash_FontFile_0_1 PPB_Flash_FontFile;
57 /**
58 * @}
59 */
60
61 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_FONT_FILE_H_ */
62
OLDNEW
« no previous file with comments | « ppapi/c/private/pp_private_font_charset.h ('k') | ppapi/c/private/ppb_pdf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698