summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 10:13:52 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 10:13:52 +0000
commitddaee297f7442191af336357628585b750b5ff03 (patch)
tree7082a040c12eed76b83fe0cf6868e96e61e6b202 /ppapi
parentc398c879dbb69dab87253efda98ed9ced6b85c33 (diff)
downloadchromium_src-ddaee297f7442191af336357628585b750b5ff03.zip
chromium_src-ddaee297f7442191af336357628585b750b5ff03.tar.gz
chromium_src-ddaee297f7442191af336357628585b750b5ff03.tar.bz2
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
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/cpp/private/pdf.cc23
-rw-r--r--ppapi/cpp/private/pdf.h6
2 files changed, 0 insertions, 29 deletions
diff --git a/ppapi/cpp/private/pdf.cc b/ppapi/cpp/private/pdf.cc
index 7a3a877..ac5b941 100644
--- a/ppapi/cpp/private/pdf.cc
+++ b/ppapi/cpp/private/pdf.cc
@@ -50,29 +50,6 @@ ImageData PDF::GetResourceImage(const InstanceHandle& instance,
// 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>()) {
diff --git a/ppapi/cpp/private/pdf.h b/ppapi/cpp/private/pdf.h
index 327d681..586952c 100644
--- a/ppapi/cpp/private/pdf.h
+++ b/ppapi/cpp/private/pdf.h
@@ -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,