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< PressKeyArgs, PressKeyActiononPressKey
 Invoked when a KeyPressed event is about to be processed by the browser.
 
Delegate< ReleaseKeyArgs, ReleaseKeyActiononReleaseKey
 Invoked when a KeyReleased event is about to be processed by the browser.
 
Delegate< TypeKeyArgs, TypeKeyActiononTypeKey
 Invoked when a KeyTyped event is about to be processed by the browser.
 
Delegate< EnterMouseArgs, EnterMouseActiononEnterMouse
 Invoked when a MouseEntered event is about to be processed by the browser.
 
Delegate< ExitMouseArgs, ExitMouseActiononExitMouse
 Invoked when a MouseExited event is about to be processed by the browser.
 
Delegate< MoveMouseArgs, MoveMouseActiononMoveMouse
 Invoked when a MouseMoved event is about to be processed by the browser.
 
Delegate< ReleaseMouseArgs, ReleaseMouseActiononReleaseMouse
 Invoked when a MouseReleased event is about to be processed by the browser.
 
Delegate< PressMouseArgs, PressMouseActiononPressMouse
 Invoked when a MousePressed event is about to be processed by the browser.
 
Delegate< MoveMouseWheelArgs, MoveMouseWheelActiononMoveMouseWheel
 Invoked when a MouseWheel event is about to be processed by the browser.
 
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:661
The BrowserDelegates::onAlert action arguments.
Definition browser_delegates.hpp:631

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:1170
The BrowserDelegates::onAuthenticate action arguments.
Definition browser_delegates.hpp:1137

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:881
The BrowserDelegates::onBeforeFormRepost action arguments.
Definition browser_delegates.hpp:851

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:827
The BrowserDelegates::onBeforeUnload action arguments.
Definition browser_delegates.hpp:791

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:966
The BrowserDelegates::onCanExecuteCommand action arguments.
Definition browser_delegates.hpp:951

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:142
The BrowserDelegates::onCertError action arguments.
Definition browser_delegates.hpp:109

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:714
The BrowserDelegates::onConfirm action arguments.
Definition browser_delegates.hpp:679

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

browser->onConfirm.reset();

◆ onEnterMouse

Delegate<EnterMouseArgs, EnterMouseAction> molybden::BrowserDelegates::onEnterMouse

Invoked when a MouseEntered event is about to be processed by the browser.

The app will be blocked until you process the mouse event.

Use the following approach to register a callback:

browser->onEnterMouse = [](const EnterMouseArgs& args, EnterMouseAction action) {};
The BrowserDelegates::onEnterMouse action.
Definition browser_delegates.hpp:230
The BrowserDelegates::onEnterMouse action arguments.
Definition browser_delegates.hpp:215

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

browser->onEnterMouse.reset();

◆ onExitMouse

Delegate<ExitMouseArgs, ExitMouseAction> molybden::BrowserDelegates::onExitMouse

Invoked when a MouseExited event is about to be processed by the browser.

The app will be blocked until you process the mouse event.

Use the following approach to register a callback:

browser->onExitMouse = [](const ExitMouseArgs& args, ExitMouseAction action) {};
The BrowserDelegates::onExitMouse action.
Definition browser_delegates.hpp:263
The BrowserDelegates::onExitMouse action arguments.
Definition browser_delegates.hpp:248

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

browser->onExitMouse.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:86
The BrowserDelegates::onInjectCss action arguments.
Definition browser_delegates.hpp:71

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:58
The BrowserDelegates::onInjectJs action arguments.
Definition browser_delegates.hpp:38

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

browser->onInjectJs.reset();

◆ onMoveMouse

Delegate<MoveMouseArgs, MoveMouseAction> molybden::BrowserDelegates::onMoveMouse

Invoked when a MouseMoved event is about to be processed by the browser.

The app will be blocked until you process the mouse event.

Use the following approach to register a callback:

browser->onMoveMouse = [](const MoveMouseArgs& args, MoveMouseAction action) {};
The BrowserDelegates::onMoveMouse action.
Definition browser_delegates.hpp:296
The BrowserDelegates::onMoveMouse action arguments.
Definition browser_delegates.hpp:281

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

browser->onMoveMouse.reset();

◆ onMoveMouseWheel

Delegate<MoveMouseWheelArgs, MoveMouseWheelAction> molybden::BrowserDelegates::onMoveMouseWheel

Invoked when a MouseWheel event is about to be processed by the browser.

The app will be blocked until you process the mouse event.

Use the following approach to register a callback:

browser->onMoveMouseWheel = [](const MoveMouseWheelArgs& args, MoveMouseWheelAction action) {};
The BrowserDelegates::onMoveMouseWheel action.
Definition browser_delegates.hpp:329
The BrowserDelegates::onMoveMouseWheel action arguments.
Definition browser_delegates.hpp:314

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

browser->onMoveMouseWheel.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:554
The BrowserDelegates::onOpenPopup action arguments.
Definition browser_delegates.hpp:514

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

browser->onOpenPopup.reset();

◆ onPressKey

Delegate<PressKeyArgs, PressKeyAction> molybden::BrowserDelegates::onPressKey

Invoked when a KeyPressed event is about to be processed by the browser.

The app will be blocked until you process the keyboard event.

Use the following approach to register a callback:

browser->onPressKey = [](const PressKeyArgs& args, PressKeyAction action) {};
The BrowserDelegate::OnPressKey action.
Definition browser_delegates.hpp:430
The BrowserDelegates::onPressKey action arguments.
Definition browser_delegates.hpp:415

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

browser->onPressKey.reset();

◆ onPressMouse

Delegate<PressMouseArgs, PressMouseAction> molybden::BrowserDelegates::onPressMouse

Invoked when a MousePressed event is about to be processed by the browser.

The app will be blocked until you process the mouse event.

Use the following approach to register a callback:

browser->onPressMouse = [](const PressMouseArgs& args, PressMouseAction action) {};
The BrowserDelegates::onPressMouse action.
Definition browser_delegates.hpp:363
The BrowserDelegates::onPressMouse action arguments.
Definition browser_delegates.hpp:348

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

browser->onPressMouse.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:767
The BrowserDelegates::onPrompt action arguments.
Definition browser_delegates.hpp:737

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

browser->onPrompt.reset();

◆ onReleaseKey

Delegate<ReleaseKeyArgs, ReleaseKeyAction> molybden::BrowserDelegates::onReleaseKey

Invoked when a KeyReleased event is about to be processed by the browser.

The app will be blocked until you process the keyboard event.

Use the following approach to register a callback:

browser->onReleaseKey = [](const ReleaseKeyArgs& args, ReleaseKeyAction action) {};
The BrowserDelegates::onReleaseKey action arguments.
Definition browser_delegates.hpp:463
The BrowserDelegates::onReleaseKey action arguments.
Definition browser_delegates.hpp:448

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

browser->onReleaseKey.reset();

◆ onReleaseMouse

Delegate<ReleaseMouseArgs, ReleaseMouseAction> molybden::BrowserDelegates::onReleaseMouse

Invoked when a MouseReleased event is about to be processed by the browser.

The app will be blocked until you process the mouse event.

Use the following approach to register a callback:

browser->onReleaseMouse = [](const ReleaseMouseArgs& args, ReleaseMouseAction action) {};
The BrowserDelegates::onReleaseMouse action.
Definition browser_delegates.hpp:396
The BrowserDelegates::onReleaseMouse action arguments.
Definition browser_delegates.hpp:381

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

browser->onReleaseMouse.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:1215
The BrowserDelegates::onRequestPdfPassword action arguments.
Definition browser_delegates.hpp:1195

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:926
The BrowserDelegates::onSaveAsPdf action arguments.
Definition browser_delegates.hpp:905

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:1326
The BrowserDelegates::onSaveCreditCard action arguments.
Definition browser_delegates.hpp:1311

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:1059
The BrowserDelegates::onSavePassword action arguments.
Definition browser_delegates.hpp:1039

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:1367
The BrowserDelegates::onSaveUserProfile action arguments.
Definition browser_delegates.hpp:1352

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:617
The BrowserDelegates::onShowContextMenu action arguments.
Definition browser_delegates.hpp:572

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:1276
The BrowserDelegates::onStartCaptureSession action arguments.
Definition browser_delegates.hpp:1246

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:1010
The BrowserDelegates::onStartDownload action arguments.
Definition browser_delegates.hpp:985

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

browser->onStartDownload.reset();

◆ onTypeKey

Delegate<TypeKeyArgs, TypeKeyAction> molybden::BrowserDelegates::onTypeKey

Invoked when a KeyTyped event is about to be processed by the browser.

The app will be blocked until you process the keyboard event.

Use the following approach to register a callback:

browser->onTypeKey = [](const TypeKeyArgs& args, TypeKeyAction action) {};
The BrowserDelegates::onTypeKey action arguments.
Definition browser_delegates.hpp:496
The BrowserDelegates::onTypeKey action arguments.
Definition browser_delegates.hpp:481

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

browser->onTypeKey.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:1112
The BrowserDelegates::onUpdatePassword action arguments.
Definition browser_delegates.hpp:1092

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:1413
The BrowserDelegates::onUpdateUserProfile action arguments.
Definition browser_delegates.hpp:1393

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:191
The BrowserDelegates::onVerifyCert action arguments.
Definition browser_delegates.hpp:160

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

browser->onVerifyCert.reset();

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