diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-09 17:27:14 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-09 17:27:14 +0000 |
commit | d215ac103db7cf183bd573faeab5035fd4c15d9f (patch) | |
tree | 852cb35c4d380af1fd6fbbf217e2e4e52e699f88 /ppapi | |
parent | 17f706d599cfb296c633a12bc32f7bbf5633e6d9 (diff) | |
download | chromium_src-d215ac103db7cf183bd573faeab5035fd4c15d9f.zip chromium_src-d215ac103db7cf183bd573faeab5035fd4c15d9f.tar.gz chromium_src-d215ac103db7cf183bd573faeab5035fd4c15d9f.tar.bz2 |
PP_PDFFEATURE_PRINTING to allow pdf plugin to remove print button when printing is disabled.
BUG=224623
Review URL: https://codereview.chromium.org/13220005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/c/private/ppb_pdf.h | 3 | ||||
-rw-r--r-- | ppapi/proxy/pdf_resource.cc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ppapi/c/private/ppb_pdf.h b/ppapi/c/private/ppb_pdf.h index 553eea8..3fb9a4f 100644 --- a/ppapi/c/private/ppb_pdf.h +++ b/ppapi/c/private/ppb_pdf.h @@ -73,7 +73,8 @@ typedef enum { } PP_ResourceImage; typedef enum { - PP_PDFFEATURE_HIDPI = 0 + PP_PDFFEATURE_HIDPI = 0, + PP_PDFFEATURE_PRINTING = 1 } PP_PDFFeature; struct PP_PrivateFontFileDescription { diff --git a/ppapi/proxy/pdf_resource.cc b/ppapi/proxy/pdf_resource.cc index 45b1cdf..a5b5d8c 100644 --- a/ppapi/proxy/pdf_resource.cc +++ b/ppapi/proxy/pdf_resource.cc @@ -148,6 +148,10 @@ PP_Bool PDFResource::IsFeatureEnabled(PP_PDFFeature feature) { case PP_PDFFEATURE_HIDPI: result = PP_TRUE; break; + case PP_PDFFEATURE_PRINTING: + // TODO(raymes): Use PrintWebViewHelper::IsPrintingEnabled. + result = PP_FALSE; + break; } return result; } |