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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/private/ppb_flash_font.h
diff --git a/ppapi/c/private/ppb_flash_font.h b/ppapi/c/private/ppb_flash_font.h
new file mode 100644
index 0000000000000000000000000000000000000000..446ca9b44edfff4211df4876006d4a6d9ea71cd0
--- /dev/null
+++ b/ppapi/c/private/ppb_flash_font.h
@@ -0,0 +1,58 @@
+/* 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.
+ */
+
+/* From private/ppb_flash_font.idl modified Tue Sep 11 10:41:02 2012. */
+
+#ifndef PPAPI_C_PRIVATE_PPB_FLASH_FONT_H_
+#define PPAPI_C_PRIVATE_PPB_FLASH_FONT_H_
+
+#include "ppapi/c/dev/ppb_font_dev.h"
+#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
+#include "ppapi/c/private/pp_private_font_charset.h"
+
+#define PPB_FLASH_FONT_INTERFACE_0_1 "PPB_Flash_Font;0.1"
+#define PPB_FLASH_FONT_INTERFACE PPB_FLASH_FONT_INTERFACE_0_1
+
+/**
+ * @file
+ * This file contains the <code>PPB_Flash_Font</code> interface.
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+struct PPB_Flash_Font_0_1 {
+ /* Returns a resource identifying a font file corresponding to the given font
+ * request after applying the browser-specific fallback.
+ *
+ * Currently Linux-only.
+ */
+ PP_Resource (*GetFontFileWithFallback)(
+ PP_Instance instance,
+ const struct PP_FontDescription_Dev* description,
+ PP_PrivateFontCharset charset);
+ /* Given a resource previously returned by GetFontFileWithFallback, returns
+ * a pointer to the requested font table. Linux only.
+ */
+ PP_Bool (*GetFontTableForPrivateFontFile)(PP_Resource font_file,
+ uint32_t table,
+ void* output,
+ uint32_t* output_length);
+};
+
+typedef struct PPB_Flash_Font_0_1 PPB_Flash_Font;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PRIVATE_PPB_FLASH_FONT_H_ */
+

Powered by Google App Engine
This is Rietveld 408576698