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

Unified Diff: chrome/renderer/pepper/ppb_flash_font_impl.cc

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: chrome/renderer/pepper/ppb_flash_font_impl.cc
diff --git a/chrome/renderer/pepper/ppb_flash_font_impl.cc b/chrome/renderer/pepper/ppb_flash_font_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..286b7ae5292a8d70dff2958b34f040402842864b
--- /dev/null
+++ b/chrome/renderer/pepper/ppb_flash_font_impl.cc
@@ -0,0 +1,30 @@
+// 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.
+
+#include "chrome/renderer/pepper/ppb_flash_font_impl.h"
+
+#include "chrome/renderer/pepper/ppb_pdf_impl.h"
+#include "ppapi/c/private/ppb_flash_font.h"
+
+namespace {
+
+PP_Bool GetFontTableForPrivateFontFile(PP_Resource font_file,
+ uint32_t table,
+ void* output,
+ uint32_t* output_length) {
+ return PP_FromBool(PPB_PDF_Impl::GetFontTableForPrivateFontFile(
+ font_file, table, output, output_length));
+}
+
+const PPB_Flash_Font flash_font_interface = {
+ &PPB_PDF_Impl::GetFontFileWithFallback,
+ &GetFontTableForPrivateFontFile
+};
+
+} // namespace
+
+// static
+const PPB_Flash_Font_0_1* PPB_Flash_Font_Impl::GetInterface() {
+ return &flash_font_interface;
+}

Powered by Google App Engine
This is Rietveld 408576698