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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/renderer/pepper/ppb_flash_font_impl.h"
6
7 #include "chrome/renderer/pepper/ppb_pdf_impl.h"
8 #include "ppapi/c/private/ppb_flash_font.h"
9
10 namespace {
11
12 PP_Bool GetFontTableForPrivateFontFile(PP_Resource font_file,
13 uint32_t table,
14 void* output,
15 uint32_t* output_length) {
16 return PP_FromBool(PPB_PDF_Impl::GetFontTableForPrivateFontFile(
17 font_file, table, output, output_length));
18 }
19
20 const PPB_Flash_Font flash_font_interface = {
21 &PPB_PDF_Impl::GetFontFileWithFallback,
22 &GetFontTableForPrivateFontFile
23 };
24
25 } // namespace
26
27 // static
28 const PPB_Flash_Font_0_1* PPB_Flash_Font_Impl::GetInterface() {
29 return &flash_font_interface;
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698