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

Unified Diff: ppapi/cpp/private/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/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_

Powered by Google App Engine
This is Rietveld 408576698