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

A class that contains all browser delegates. More...

#include <browser_delegates.hpp>

Inheritance diagram for molybden::BrowserDelegates:
molybden::Browser

Public Attributes

Delegate< InjectJsArgs, InjectJsActiononInjectJs
 Invoked when a document element has been created and a custom JavaScript can be executed before any other JavaScript code on the page.
 
Delegate< InjectCssArgs, InjectCssActiononInjectCss
 Invoked when a web page frame's document element has been created and a custom style sheet can be injected into it.
 
Delegate< CertErrorArgs, CertErrorActiononCertError
 Invoked when an SSL certificate error occurs during loading a web page.
 
Delegate< VerifyCertArgs, VerifyCertActiononVerifyCert
 Invoked when certificate verification is required.
 
Delegate< OpenPopupArgs, OpenPopupActiononOpenPopup
 Invoked when a new popup window has been created and can be displayed.
 
Delegate< ShowContextMenuArgs, ShowContextMenuActiononShowContextMenu
 Invoked when context menu on the loaded web page should be shown.
 
Delegate< AlertArgs, AlertActiononAlert
 Invoked when the JavaScript alert dialog should be displayed.
 
Delegate< ConfirmArgs, ConfirmActiononConfirm
 Invoked when the JavaScript confirmation dialog should be displayed.
 
Delegate< PromptArgs, PromptActiononPrompt
 Invoked when the JavaScript dialog prompting the user to input some text should be displayed.
 
Delegate< BeforeUnloadArgs, BeforeUnloadActiononBeforeUnload
 Invoked when the webpage is about to be unloaded and the JavaScript before unload confirmation dialog should be displayed.
 
Delegate< BeforeFormRepostArgs, BeforeFormRepostActiononBeforeFormRepost
 Invoked when the web page with POST data is going to be reloaded and the user must confirm that the POST data can be resubmitted.
 
Delegate< SaveAsPdfArgs, SaveAsPdfActiononSaveAsPdf
 Invoked when the currently loaded web page is about to save as PDF document and the browser wants to display a file chooser dialog to ask the end user where to save the PDF file.
 
Delegate< CanExecuteCommandArgs, CanExecuteCommandActiononCanExecuteCommand
 Invoked to check if a browser command can be executed or not.
 
Delegate< StartDownloadArgs, StartDownloadActiononStartDownload
 Invoked when the browser is about to start downloading a file.
 
Delegate< SavePasswordArgs, SavePasswordActiononSavePassword
 Invoked when the the user is prompted to save the password credentials in the password store after web form submission.
 
Delegate< UpdatePasswordArgs, UpdatePasswordActiononUpdatePassword
 Invoked when the the user is prompted to update the password credentials in the password store after web form submission.
 
Delegate< AuthenticateArgs, AuthenticateActiononAuthenticate
 Invoked when an HTTP request receives an authentication challenge and it is unable to respond using the cached credentials.
 
Delegate< RequestPdfPasswordArgs, RequestPdfPasswordActiononRequestPdfPassword
 Invoked when a web page needs a password to open an encrypted PDF document.
 
Delegate< StartCaptureSessionArgs, StartCaptureSessionActiononStartCaptureSession
 Invoked when a web page requests permission to start a capture session.
 
Delegate< SaveCreditCardArgs, SaveCreditCardActiononSaveCreditCard
 Invoked when user is prompted to save the credit card credentials in the credit card store after web form submission.
 
Delegate< SaveUserProfileArgs, SaveUserProfileActiononSaveUserProfile
 Invoked when user is prompted to save the user profile in the user profile store after web form submission.
 
Delegate< UpdateUserProfileArgs, UpdateUserProfileActiononUpdateUserProfile
 Invoked when user is prompted to update the user profile in the user profile store after web form submission.
 

Detailed Description

A class that contains all browser delegates.

Member Data Documentation

◆ onAlert

Delegate<AlertArgs, AlertAction> molybden::BrowserDelegates::onAlert

Invoked when the JavaScript alert dialog should be displayed.

Use the following approach to register a callback:

browser->onAlert = [](const AlertArgs& args, AlertAction action) {};
The BrowserDelegates::onAlert action.
Definition browser_delegates.hpp:365
The BrowserDelegates::onAlert action arguments.
Definition browser_delegates.hpp:335

In order to unregister the callback, use the reset() method:

browser->onAlert.reset();

◆ onAuthenticate

Delegate<AuthenticateArgs, AuthenticateAction> molybden::BrowserDelegates::onAuthenticate

Invoked when an HTTP request receives an authentication challenge and it is unable to respond using the cached credentials.

This callback allows handling "basic" and "digest" authentication.

Use the following approach to register a callback:

browser->onAuthenticate = [](const AuthenticateArgs& args, AuthenticateAction action) {};
The BrowserDelegates::onAuthenticate action.
Definition browser_delegates.hpp:874
The BrowserDelegates::onAuthenticate action arguments.
Definition browser_delegates.hpp:841

In order to unregister the callback, use the reset() method:

browser->onAuthenticate.reset();

◆ onBeforeFormRepost

Delegate<BeforeFormRepostArgs, BeforeFormRepostAction> molybden::BrowserDelegates::onBeforeFormRepost

Invoked when the web page with POST data is going to be reloaded and the user must confirm that the POST data can be resubmitted.

Use the following approach to register a callback:

browser->onBeforeFormRepost = [](const BeforeFormRepostArgs& args, BeforeFormRepostAction action) {};
The BrowserDelegates::onBeforeFormRepost action arguments.
Definition browser_delegates.hpp:585
The BrowserDelegates::onBeforeFormRepost action arguments.
Definition browser_delegates.hpp:555

In order to unregister the callback, use the reset() method:

browser->onBeforeFormRepost.reset();

◆ onBeforeUnload

Delegate<BeforeUnloadArgs, BeforeUnloadAction> molybden::BrowserDelegates::onBeforeUnload

Invoked when the webpage is about to be unloaded and the JavaScript before unload confirmation dialog should be displayed.

Use the following approach to register a callback:

browser->onBeforeUnload = [](const BeforeUnloadArgs& args, BeforeUnloadAction action) {};
The BrowserDelegates::onBeforeUnload action.
Definition browser_delegates.hpp:531
The BrowserDelegates::onBeforeUnload action arguments.
Definition browser_delegates.hpp:495

In order to unregister the callback, use the reset() method:

browser->onBeforeUnload.reset();

◆ onCanExecuteCommand

Delegate<CanExecuteCommandArgs, CanExecuteCommandAction> molybden::BrowserDelegates::onCanExecuteCommand

Invoked to check if a browser command can be executed or not.

Use the following approach to register a callback:

browser->onCanExecuteCommand = [](const CanExecuteCommandArgs& args, CanExecuteCommandAction action) {};
The BrowserDelegates::onShowBeforeFormRepost action arguments.
Definition browser_delegates.hpp:670
The BrowserDelegates::onCanExecuteCommand action arguments.
Definition browser_delegates.hpp:655

In order to unregister the callback, use the reset() method:

browser->onCanExecuteCommand.reset();

◆ onCertError

Delegate<CertErrorArgs, CertErrorAction> molybden::BrowserDelegates::onCertError

Invoked when an SSL certificate error occurs during loading a web page.

Use the following approach to register a callback:

browser->onCertError = [](const CertErrorArgs& args, CertErrorAction action) {};
The BrowserDelegates::onCertError action.
Definition browser_delegates.hpp:140
The BrowserDelegates::onCertError action arguments.
Definition browser_delegates.hpp:107

In order to unregister the callback, use the reset() method:

browser->onCertificateError.reset();

◆ onConfirm

Delegate<ConfirmArgs, ConfirmAction> molybden::BrowserDelegates::onConfirm

Invoked when the JavaScript confirmation dialog should be displayed.

Use the following approach to register a callback:

browser->onConfirm = [](const ConfirmArgs& args, ConfirmAction action) {};
The BrowserDelegates::onConfirm action.
Definition browser_delegates.hpp:418
The BrowserDelegates::onConfirm action arguments.
Definition browser_delegates.hpp:383

In order to unregister the callback, use the reset() method:

browser->onConfirm.reset();

◆ onInjectCss

Delegate<InjectCssArgs, InjectCssAction> molybden::BrowserDelegates::onInjectCss

Invoked when a web page frame's document element has been created and a custom style sheet can be injected into it.

It may be invoked several times for the same frame's document element.

Use the following approach to register a callback:

browser->onInjectCss = [](const InjectCssArgs& args, InjectCssAction action) {};
The BrowserDelegates::onInjectCss action.
Definition browser_delegates.hpp:84
The BrowserDelegates::onInjectCss action arguments.
Definition browser_delegates.hpp:69

In order to unregister the callback, use the reset() method:

browser->onInjectCss.reset();

◆ onInjectJs

Delegate<InjectJsArgs, InjectJsAction> molybden::BrowserDelegates::onInjectJs

Invoked when a document element has been created and a custom JavaScript can be executed before any other JavaScript code on the page.

Use the following approach to register a callback:

browser->onInjectJs = [](const InjectJsArgs& args, InjectJsAction action) {};
The BrowserDelegates::onInjectJs action.
Definition browser_delegates.hpp:56
The BrowserDelegates::onInjectJs action arguments.
Definition browser_delegates.hpp:36

In order to unregister the callback, use the reset() method:

browser->onInjectJs.reset();

◆ onOpenPopup

Delegate<OpenPopupArgs, OpenPopupAction> molybden::BrowserDelegates::onOpenPopup

Invoked when a new popup window has been created and can be displayed.

Use the following approach to register a callback:

browser->onOpenPopup = [](const OpenPopupArgs& args, OpenPopupAction action) {};
The BrowserDelegates::onOpenPopup action.
Definition browser_delegates.hpp:253
The BrowserDelegates::onOpenPopup action arguments.
Definition browser_delegates.hpp:213

In order to unregister the callback, use the reset() method:

browser->onOpenPopup.reset();

◆ onPrompt

Delegate<PromptArgs, PromptAction> molybden::BrowserDelegates::onPrompt

Invoked when the JavaScript dialog prompting the user to input some text should be displayed.

Use the following approach to register a callback:

browser->onPrompt = [](const PromptArgs& args, PromptAction action) {};
The BrowserDelegates::onPrompt action.
Definition browser_delegates.hpp:471
The BrowserDelegates::onPrompt action arguments.
Definition browser_delegates.hpp:441

In order to unregister the callback, use the reset() method:

browser->onPrompt.reset();

◆ onRequestPdfPassword

Delegate<RequestPdfPasswordArgs, RequestPdfPasswordAction> molybden::BrowserDelegates::onRequestPdfPassword

Invoked when a web page needs a password to open an encrypted PDF document.

Use the following approach to register a callback:

browser->onRequestPdfPassword = [](const RequestPdfPasswordArgs& args, RequestPdfPasswordAction action) {};
The BrowserDelegates::onRequestPdfPassword action.
Definition browser_delegates.hpp:919
The BrowserDelegates::onRequestPdfPassword action arguments.
Definition browser_delegates.hpp:899

In order to unregister the callback, use the reset() method:

browser->onRequestPdfPassword.reset();

◆ onSaveAsPdf

Delegate<SaveAsPdfArgs, SaveAsPdfAction> molybden::BrowserDelegates::onSaveAsPdf

Invoked when the currently loaded web page is about to save as PDF document and the browser wants to display a file chooser dialog to ask the end user where to save the PDF file.

Use the following approach to register a callback:

browser->onSaveAsPdf = [](const SaveAsPdfArgs& args, SaveAsPdfAction action) {};
The BrowserDelegates::onSaveAsPdf action arguments.
Definition browser_delegates.hpp:630
The BrowserDelegates::onSaveAsPdf action arguments.
Definition browser_delegates.hpp:609

In order to unregister the callback, use the reset() method:

browser->onSaveAsPdf.reset();

◆ onSaveCreditCard

Delegate<SaveCreditCardArgs, SaveCreditCardAction> molybden::BrowserDelegates::onSaveCreditCard

Invoked when user is prompted to save the credit card credentials in the credit card store after web form submission.

It happens when user submits a web form with credit card information (a cardholder name, number, expiration date, CVV/CVC).

Use the following approach to register a callback:

browser->onSaveCreditCard = [](const SaveCreditCardArgs& args, SaveCreditCardAction action) {};
The BrowserDelegates::onSaveCreditCard action.
Definition browser_delegates.hpp:1030
The BrowserDelegates::onSaveCreditCard action arguments.
Definition browser_delegates.hpp:1015

In order to unregister the callback, use the reset() method:

browser->onSaveCreditCard.reset();

◆ onSavePassword

Delegate<SavePasswordArgs, SavePasswordAction> molybden::BrowserDelegates::onSavePassword

Invoked when the the user is prompted to save the password credentials in the password store after web form submission.

Use the following approach to register a callback:

browser->onSavePassword = [](const SavePasswordArgs& args, SavePasswordAction action) {};
The BrowserDelegates::onSavePassword action.
Definition browser_delegates.hpp:763
The BrowserDelegates::onSavePassword action arguments.
Definition browser_delegates.hpp:743

In order to unregister the callback, use the reset() method:

browser->onSavePassword.reset();

◆ onSaveUserProfile

Delegate<SaveUserProfileArgs, SaveUserProfileAction> molybden::BrowserDelegates::onSaveUserProfile

Invoked when user is prompted to save the user profile in the user profile store after web form submission.

It happens when user submits a web form with the fields associated with a user profile such as city, state, street, zip code, email address, etc.

Use the following approach to register a callback:

browser->onSaveUserProfile = [](const SaveUserProfileArgs& args, SaveUserProfileAction action) {};
The BrowserDelegates::onSaveUserProfile action.
Definition browser_delegates.hpp:1071
The BrowserDelegates::onSaveUserProfile action arguments.
Definition browser_delegates.hpp:1056

In order to unregister the callback, use the reset() method:

browser->onSaveUserProfile.reset();

◆ onShowContextMenu

Delegate<ShowContextMenuArgs, ShowContextMenuAction> molybden::BrowserDelegates::onShowContextMenu

Invoked when context menu on the loaded web page should be shown.

Use the following approach to register a callback:

browser->onShowContextMenu = [](const ShowContextMenuArgs& args, ShowContextMenuAction action) {};
The BrowserDelegates::onShowContextMenu action.
Definition browser_delegates.hpp:316
The BrowserDelegates::onShowContextMenu action arguments.
Definition browser_delegates.hpp:271

In order to unregister the callback, use the reset() method:

browser->onShowContextMenu.reset();

◆ onStartCaptureSession

Delegate<StartCaptureSessionArgs, StartCaptureSessionAction> molybden::BrowserDelegates::onStartCaptureSession

Invoked when a web page requests permission to start a capture session.

Use the following approach to register a callback:

browser->onStartCaptureSession = [](const StartCaptureSessionArgs& args, StartCaptureSessionAction action) {};
The BrowserDelegates::onStartCaptureSession action.
Definition browser_delegates.hpp:980
The BrowserDelegates::onStartCaptureSession action arguments.
Definition browser_delegates.hpp:950

In order to unregister the callback, use the reset() method:

browser->onStartCaptureSession.reset();

◆ onStartDownload

Delegate<StartDownloadArgs, StartDownloadAction> molybden::BrowserDelegates::onStartDownload

Invoked when the browser is about to start downloading a file.

Use the following approach to register a callback:

browser->onStartDownload = [](const StartDownloadArgs& args, StartDownloadAction action) {};
The BrowserDelegates::onStartDownload action.
Definition browser_delegates.hpp:714
The BrowserDelegates::onStartDownload action arguments.
Definition browser_delegates.hpp:689

In order to unregister the callback, use the reset() method:

browser->onStartDownload.reset();

◆ onUpdatePassword

Delegate<UpdatePasswordArgs, UpdatePasswordAction> molybden::BrowserDelegates::onUpdatePassword

Invoked when the the user is prompted to update the password credentials in the password store after web form submission.

Use the following approach to register a callback:

browser->onUpdatePassword = [](const UpdatePasswordArgs& args, UpdatePasswordAction action) {};
The BrowserDelegates::onUpdatePassword action.
Definition browser_delegates.hpp:816
The BrowserDelegates::onUpdatePassword action arguments.
Definition browser_delegates.hpp:796

In order to unregister the callback, use the reset() method:

browser->onUpdatePassword.reset();

◆ onUpdateUserProfile

Delegate<UpdateUserProfileArgs, UpdateUserProfileAction> molybden::BrowserDelegates::onUpdateUserProfile

Invoked when user is prompted to update the user profile in the user profile store after web form submission.

It happens when user changes the already saved user email address.

Use the following approach to register a callback:

browser->onUpdateUserProfile = [](const UpdateUserProfileArgs& args, UpdateUserProfileAction action) {};
The BrowserDelegates::onUpdateUserProfile action.
Definition browser_delegates.hpp:1117
The BrowserDelegates::onUpdateUserProfile action arguments.
Definition browser_delegates.hpp:1097

In order to unregister the callback, use the reset() method:

browser->onUpdateUserProfile.reset();

◆ onVerifyCert

Delegate<VerifyCertArgs, VerifyCertAction> molybden::BrowserDelegates::onVerifyCert

Invoked when certificate verification is required.

Use the following approach to register a callback:

browser->onVerifyCert = [](const VerifyCertArgs& args, VerifyCertAction action) {};
The BrowserDelegates::onVerifyCert action.
Definition browser_delegates.hpp:189
The BrowserDelegates::onVerifyCert action arguments.
Definition browser_delegates.hpp:158

In order to unregister the callback, use the reset() method:

browser->onVerifyCert.reset();

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