summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/private/flash_font_file.h
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 17:06:09 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 17:06:09 +0000
commitcb65f13f1259423dee5bd48536b31319c9c176fd (patch)
treec11b94c5363d0cba9a9b2b4d2edd15dd82c5a98f /ppapi/cpp/private/flash_font_file.h
parentd11682d50a1dff1d0e4eac87b2c62e0ad5aa4449 (diff)
downloadchromium_src-cb65f13f1259423dee5bd48536b31319c9c176fd.zip
chromium_src-cb65f13f1259423dee5bd48536b31319c9c176fd.tar.gz
chromium_src-cb65f13f1259423dee5bd48536b31319c9c176fd.tar.bz2
Introduce PPB_Flash_Font.
It is a subset of PPB_PDF and shares the implementation with some PPB_PDF methods. With this interface, Pepper Flash doesn't need to depend on PPB_PDF. BUG=None TEST=None Review URL: https://codereview.chromium.org/10905227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/private/flash_font_file.h')
-rw-r--r--ppapi/cpp/private/flash_font_file.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/ppapi/cpp/private/flash_font_file.h b/ppapi/cpp/private/flash_font_file.h
new file mode 100644
index 0000000..034c2fc
--- /dev/null
+++ b/ppapi/cpp/private/flash_font_file.h
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef PPAPI_CPP_PRIVATE_FLASH_FONT_FILE_H_
+#define PPAPI_CPP_PRIVATE_FLASH_FONT_FILE_H_
+
+#include "ppapi/c/private/pp_private_font_charset.h"
+#include "ppapi/cpp/resource.h"
+
+struct PP_FontDescription_Dev;
+
+namespace pp {
+
+class InstanceHandle;
+
+namespace flash {
+
+class FontFile : public Resource {
+ public:
+ FontFile(const InstanceHandle& instance,
+ const PP_FontDescription_Dev* description,
+ PP_PrivateFontCharset charset);
+ virtual ~FontFile();
+
+ // Returns true if the required interface is available.
+ static bool IsAvailable();
+
+ bool GetFontTable(uint32_t table, void* output, uint32_t* output_length);
+};
+
+} // namespace flash
+} // namespace pp
+
+#endif // PPAPI_CPP_PRIVATE_FLASH_FONT_FILE_H_