Molybden API
|
Objects implement this interface to get notified about changes in Navigation
and to provide necessary functionality.
More...
#include <navigation_delegates.hpp>
Public Attributes | |
Delegate< StartNavigationArgs, StartNavigationAction > | onStartNavigation |
Invoked when navigation to a resource is about to start. | |
Delegate< ShowHttpErrorPageArgs, ShowHttpErrorPageAction > | onShowHttpErrorPage |
Invoked when a network error web page is about to display, because the web server sends an empty HTTP response with the HTTP status code that represents an error. | |
Delegate< ShowNetErrorPageArgs, ShowNetErrorPageAction > | onShowNetErrorPage |
Invoked when a network error web page is about to display, because the required web resource cannot be loaded because of a network error. | |
Objects implement this interface to get notified about changes in Navigation
and to provide necessary functionality.
Delegate<ShowHttpErrorPageArgs, ShowHttpErrorPageAction> molybden::NavigationDelegates::onShowHttpErrorPage |
Invoked when a network error web page is about to display, because the web server sends an empty HTTP response with the HTTP status code that represents an error.
Use ShowHttpErrorPageAction::ShowPage()
to show the custom error page with the given HTML.
Use ShowHttpErrorPageAction::Default()
to display the default Chromium error page.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<ShowNetErrorPageArgs, ShowNetErrorPageAction> molybden::NavigationDelegates::onShowNetErrorPage |
Invoked when a network error web page is about to display, because the required web resource cannot be loaded because of a network error.
Use ShowNetErrorPageAction::ShowPage()
to show the custom network error page with the given HTML.
Use ShowNetErrorPageAction::Default()
to display the default Chromium network error page.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method:
Delegate<StartNavigationArgs, StartNavigationAction> molybden::NavigationDelegates::onStartNavigation |
Invoked when navigation to a resource is about to start.
It is the place where you can cancel a navigation request.
Use the following approach to register a callback:
In order to unregister the callback, use the reset()
method: