Molybden API
|
The BrowserDelegates::onRequestPdfPassword action. More...
#include <browser_delegates.hpp>
Public Member Functions | |
RequestPdfPasswordAction (std::unique_ptr< rpc::internal::Callback > callback) | |
void | password (const std::string &password) |
Use the given password to load the encrypted PDF document. | |
void | cancel () |
Cancel the request for the password. | |
void | prompt () |
Display a native prompt dialog where the end user can provide the password to open the encrypted PDF document. | |
Public Member Functions inherited from molybden::Action | |
Action (std::unique_ptr< rpc::internal::Callback > callback) | |
Additional Inherited Members | |
Protected Attributes inherited from molybden::Action | |
std::unique_ptr< rpc::internal::Callback > | callback_ |
The BrowserDelegates::onRequestPdfPassword action.
void molybden::RequestPdfPasswordAction::cancel | ( | ) |
Cancel the request for the password.
In this case the browser will fail to load the frame with the encrypted PDF document.
void molybden::RequestPdfPasswordAction::password | ( | const std::string & | password | ) |
Use the given password to load the encrypted PDF document.
If the provided password is incorrect, the browser will fail to load the frame with the encrypted PDF document.