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

Unified Diff: ppapi/api/private/ppb_flash_font_file.idl

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/api/private/pp_private_font_charset.idl ('k') | ppapi/c/private/pp_private_font_charset.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_flash_font_file.idl
diff --git a/ppapi/api/private/ppb_flash_font_file.idl b/ppapi/api/private/ppb_flash_font_file.idl
new file mode 100644
index 0000000000000000000000000000000000000000..51309f112ca7c3c3f41477afd259aa180642d46c
--- /dev/null
+++ b/ppapi/api/private/ppb_flash_font_file.idl
@@ -0,0 +1,39 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * This file contains the <code>PPB_Flash_FontFile</code> interface.
+ */
+
+label Chrome {
+ M24 = 0.1
+};
+
+interface PPB_Flash_FontFile {
+ /* Returns a resource identifying a font file corresponding to the given font
+ * request after applying the browser-specific fallback.
+ */
+ PP_Resource Create(
+ [in] PP_Instance instance,
+ [in] PP_FontDescription_Dev description,
+ [in] PP_PrivateFontCharset charset);
+
+ /* Determines if a given resource is Flash font file.
+ */
+ PP_Bool IsFlashFontFile([in] PP_Resource resource);
+
+ /* Returns the requested font table.
+ * |output_length| should pass in the size of |output|. And it will return
+ * the actual length of returned data. |output| could be NULL in order to
+ * query the size of the buffer size needed. In that case, the input value of
+ * |output_length| is ignored.
+ * Note: it is Linux only and fails directly on other platforms.
+ */
+ PP_Bool GetFontTable(
+ [in] PP_Resource font_file,
+ [in] uint32_t table,
+ [out] mem_t output,
+ [out] uint32_t output_length);
+};
« no previous file with comments | « ppapi/api/private/pp_private_font_charset.idl ('k') | ppapi/c/private/pp_private_font_charset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698