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

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

Issue 10905227: Introduce PPB_Flash_Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
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.idl modified Tue Sep 11 10:41:02 2012. */
7
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FONT_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_FONT_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_FONT_INTERFACE_0_1 "PPB_Flash_Font;0.1"
21 #define PPB_FLASH_FONT_INTERFACE PPB_FLASH_FONT_INTERFACE_0_1
22
23 /**
24 * @file
25 * This file contains the <code>PPB_Flash_Font</code> interface.
26 */
27
28
29 /**
30 * @addtogroup Interfaces
31 * @{
32 */
33 struct PPB_Flash_Font_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 * Currently Linux-only.
38 */
39 PP_Resource (*GetFontFileWithFallback)(
40 PP_Instance instance,
41 const struct PP_FontDescription_Dev* description,
42 PP_PrivateFontCharset charset);
43 /* Given a resource previously returned by GetFontFileWithFallback, returns
44 * a pointer to the requested font table. Linux only.
45 */
46 PP_Bool (*GetFontTableForPrivateFontFile)(PP_Resource font_file,
47 uint32_t table,
48 void* output,
49 uint32_t* output_length);
50 };
51
52 typedef struct PPB_Flash_Font_0_1 PPB_Flash_Font;
53 /**
54 * @}
55 */
56
57 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_FONT_H_ */
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698