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; |
+} |