diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 17:34:41 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 17:34:41 +0000 |
commit | d855ee3c72e1ceb4e0fca5a0506cebea9f638c7d (patch) | |
tree | 93d2b9fad1d8436b64c08ab7c234ec27fb39eab1 /ppapi/c | |
parent | 7d9af8ef3129cfab0bf3bebd3d1d437d9bbd317b (diff) | |
download | chromium_src-d855ee3c72e1ceb4e0fca5a0506cebea9f638c7d.zip chromium_src-d855ee3c72e1ceb4e0fca5a0506cebea9f638c7d.tar.gz chromium_src-d855ee3c72e1ceb4e0fca5a0506cebea9f638c7d.tar.bz2 |
Adds a PPAPI interface to request a password. For the Mac it opens a tab-modal password box; for other platforms it falls back to a JavaScript dialog (which is no change from the current behavior).
BUG=54748
TEST=load a password-protected PDF on the Mac, see fancy new UI
R=raymes@chromium.org, sail@chromium.org, thestig@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/23447025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/private/ppb_pdf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/c/private/ppb_pdf.h b/ppapi/c/private/ppb_pdf.h index 2e2e73b..fdc5748 100644 --- a/ppapi/c/private/ppb_pdf.h +++ b/ppapi/c/private/ppb_pdf.h @@ -156,6 +156,10 @@ struct PPB_PDF { PP_Resource (*GetResourceImageForScale)(PP_Instance instance, PP_ResourceImage image_id, float scale); + + // Invoke password dialog for plugin. + struct PP_Var (*ModalPromptForPassword)(PP_Instance instance, + struct PP_Var message); }; #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ |