Index: ppapi/cpp/private/flash_font.h |
diff --git a/ppapi/cpp/private/flash_font.h b/ppapi/cpp/private/flash_font.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..196b0cb20d6089371b45e7ca85c531e38a1891ea |
--- /dev/null |
+++ b/ppapi/cpp/private/flash_font.h |
@@ -0,0 +1,37 @@ |
+// 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_H_ |
+#define PPAPI_CPP_PRIVATE_FLASH_FONT_H_ |
+ |
+#include "ppapi/c/private/ppb_flash_font.h" |
+#include "ppapi/cpp/resource.h" |
+ |
+namespace pp { |
+ |
+class InstanceHandle; |
+ |
+namespace flash { |
+ |
+class Font { |
brettw
2012/09/13 23:10:41
Can you just make this a regular resource called F
yzshen1
2012/10/08 18:38:00
Done.
|
+ public: |
+ // Returns true if the required interface is available. |
+ static bool IsAvailable(); |
+ |
+ static Resource GetFontFileWithFallback( |
+ const InstanceHandle& instance, |
+ const PP_FontDescription_Dev* description, |
+ PP_PrivateFontCharset charset); |
+ |
+ // |font_file| is a resource previously returned by GetFontFileWithFallback(). |
+ static bool GetFontTableForPrivateFontFile(const Resource& font_file, |
+ uint32_t table, |
+ void* output, |
+ uint32_t* output_length); |
+}; |
+ |
+} // namespace flash |
+} // namespace pp |
+ |
+#endif // PPAPI_CPP_PRIVATE_FLASH_FONT_H_ |