Molybden API
Loading...
Searching...
No Matches
molybden::RequestPdfPasswordAction Class Reference

The BrowserDelegates::onRequestPdfPassword action. More...

#include <browser_delegates.hpp>

Inheritance diagram for molybden::RequestPdfPasswordAction:
molybden::Action

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_
 

Detailed Description

Member Function Documentation

◆ cancel()

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.

◆ password()

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.


The documentation for this class was generated from the following file: