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

Side by Side Diff: ppapi/api/private/ppb_flash_font_file.idl

Issue 1416643002: Enable pp::flash::FontFile support on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Based generated thunk files Created 5 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** 6 /**
7 * This file contains the <code>PPB_Flash_FontFile</code> interface. 7 * This file contains the <code>PPB_Flash_FontFile</code> interface.
8 */ 8 */
9 9
10 [generate_thunk]
11
10 label Chrome { 12 label Chrome {
11 M24 = 0.1 13 M24 = 0.1,
14 M48 = 0.2
12 }; 15 };
13 16
14 interface PPB_Flash_FontFile { 17 interface PPB_Flash_FontFile {
15 /* Returns a resource identifying a font file corresponding to the given font 18 /* Returns a resource identifying a font file corresponding to the given font
16 * request after applying the browser-specific fallback. 19 * request after applying the browser-specific fallback.
17 */ 20 */
18 PP_Resource Create( 21 PP_Resource Create(
19 [in] PP_Instance instance, 22 [in] PP_Instance instance,
20 [in] PP_BrowserFont_Trusted_Description description, 23 [in] PP_BrowserFont_Trusted_Description description,
21 [in] PP_PrivateFontCharset charset); 24 [in] PP_PrivateFontCharset charset);
22 25
23 /* Determines if a given resource is Flash font file. 26 /* Determines if a given resource is Flash font file.
24 */ 27 */
25 PP_Bool IsFlashFontFile([in] PP_Resource resource); 28 PP_Bool IsFlashFontFile([in] PP_Resource resource);
26 29
27 /* Returns the requested font table. 30 /* Returns the requested font table.
28 * |output_length| should pass in the size of |output|. And it will return 31 * |output_length| should pass in the size of |output|. And it will return
29 * the actual length of returned data. |output| could be NULL in order to 32 * the actual length of returned data. |output| could be NULL in order to
30 * query the size of the buffer size needed. In that case, the input value of 33 * query the size of the buffer size needed. In that case, the input value of
31 * |output_length| is ignored. 34 * |output_length| is ignored.
32 * Note: it is Linux only and fails directly on other platforms. 35 * Note: it is Linux only and fails directly on other platforms.
33 */ 36 */
34 PP_Bool GetFontTable( 37 PP_Bool GetFontTable(
35 [in] PP_Resource font_file, 38 [in] PP_Resource font_file,
36 [in] uint32_t table, 39 [in] uint32_t table,
37 [out] mem_t output, 40 [out] mem_t output,
38 [out] uint32_t output_length); 41 [out] uint32_t output_length);
42
43 /**
44 * Returns whether <code>PPB_Flash_FontFile</code> is supported on Windows.
45 */
46 [version=0.2]
47 PP_Bool IsSupportedForWindows();
48
39 }; 49 };
40 50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698