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

Unified Diff: ppapi/cpp/private/pdf.cc

Issue 260153002: PPAPI: Remove the PP_FontDescription_Dev version of GetFontFileWithFallback() from the pdf interfac… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 8 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
« no previous file with comments | « ppapi/cpp/private/pdf.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/pdf.cc
===================================================================
--- ppapi/cpp/private/pdf.cc (revision 266327)
+++ ppapi/cpp/private/pdf.cc (working copy)
@@ -50,29 +50,6 @@
// static
PP_Resource PDF::GetFontFileWithFallback(
const InstanceHandle& instance,
- const PP_FontDescription_Dev* description,
- PP_PrivateFontCharset charset) {
- if (has_interface<PPB_PDF>()) {
- PP_BrowserFont_Trusted_Description converted_desc;
- converted_desc.face = description->face;
- converted_desc.family = static_cast<PP_BrowserFont_Trusted_Family>(
- description->family);
- converted_desc.size = description->size;
- converted_desc.weight = static_cast<PP_BrowserFont_Trusted_Weight>(
- description->weight);
- converted_desc.italic = description->italic;
- converted_desc.small_caps = description->small_caps;
- converted_desc.letter_spacing = description->letter_spacing;
- converted_desc.word_spacing = description->word_spacing;
- return get_interface<PPB_PDF>()->GetFontFileWithFallback(
- instance.pp_instance(), &converted_desc, charset);
- }
- return 0;
-}
-
-// static
-PP_Resource PDF::GetFontFileWithFallback(
- const InstanceHandle& instance,
const PP_BrowserFont_Trusted_Description* description,
PP_PrivateFontCharset charset) {
if (has_interface<PPB_PDF>()) {
« no previous file with comments | « ppapi/cpp/private/pdf.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698