Commit ddaee297 authored by thestig@chromium.org's avatar thestig@chromium.org

PPAPI: Remove the PP_FontDescription_Dev version of GetFontFileWithFallback()...

PPAPI: Remove the PP_FontDescription_Dev version of GetFontFileWithFallback() from the pdf interface impl.

Review URL: https://codereview.chromium.org/260153002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266824 0039d316-1c4b-4281-b951-d872f2087c98
parent c398c879
......@@ -47,29 +47,6 @@ ImageData PDF::GetResourceImage(const InstanceHandle& instance,
return ImageData();
}
// 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,
......
......@@ -26,12 +26,6 @@ class PDF {
PP_ResourceString string_id);
static ImageData GetResourceImage(const InstanceHandle& instance,
PP_ResourceImage image_id);
// TODO(raymes): Remove this version when the PDF code is changed to use
// PP_BrowserFont_Trusted_Description.
static PP_Resource GetFontFileWithFallback(
const InstanceHandle& instance,
const PP_FontDescription_Dev* description,
PP_PrivateFontCharset charset);
static PP_Resource GetFontFileWithFallback(
const InstanceHandle& instance,
const PP_BrowserFont_Trusted_Description* description,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment