5#ifndef MOLYBDEN_NAVIGATION_EVENTS_HPP
6#define MOLYBDEN_NAVIGATION_EVENTS_HPP
11#include "molybden/base/event.hpp"
12#include "molybden/network/network.hpp"
Events allow you to be notified when something happens in Molybden.
Definition event.hpp:25
A class that contains all navigation events.
Definition navigation_events.hpp:225
Event< FrameLoadFinished > onFrameLoadFinished
Invoked when the frame load has been finished.
Definition navigation_events.hpp:315
Event< LoadFinished > onLoadFinished
Invoked when the load has been finished.
Definition navigation_events.hpp:357
Event< FrameLoadFailed > onFrameLoadFailed
Invoked when the frame load has been failed.
Definition navigation_events.hpp:304
Event< LoadProgressChanged > onLoadProgressChanged
Invoked when the web page loading progress has been changed.
Definition navigation_events.hpp:293
Event< FrameDocumentLoadFinished > onFrameDocumentLoadFinished
Invoked when the frame document load has been finished.
Definition navigation_events.hpp:329
Event< NavigationStarted > onNavigationStarted
Invoked when a navigation has been started.
Definition navigation_events.hpp:246
Event< NavigationRedirected > onNavigationRedirected
Invoked when a navigation has encountered a server redirect.
Definition navigation_events.hpp:271
Event< LoadStarted > onLoadStarted
Invoked when the load has been started.
Definition navigation_events.hpp:343
Event< NavigationFinished > onNavigationFinished
Invoked when a navigation has been finished.
Definition navigation_events.hpp:260
Event< NavigationStopped > onNavigationStopped
Invoked when a navigation has been stopped.
Definition navigation_events.hpp:282
The NavigationEvents::onFrameDocumentLoadFinished event arguments.
Definition navigation_events.hpp:190
std::shared_ptr< Frame > frame
The frame instance that has been loaded.
Definition navigation_events.hpp:199
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:194
The NavigationEvents::onFrameLoadFailed event arguments.
Definition navigation_events.hpp:145
std::shared_ptr< Frame > frame
The frame instance that has been failed loading.
Definition navigation_events.hpp:154
NetError error
The error explaining why the frame failed to load.
Definition navigation_events.hpp:164
std::string url
The URL of the resource to load.
Definition navigation_events.hpp:159
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:149
The NavigationEvents::onFrameLoadFinished event arguments.
Definition navigation_events.hpp:170
std::string url
The URL of the resource to load.
Definition navigation_events.hpp:184
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:174
std::shared_ptr< Frame > frame
The frame instance that has been loaded.
Definition navigation_events.hpp:179
The NavigationEvents::onLoadFinished event arguments.
Definition navigation_events.hpp:215
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:219
The NavigationEvents::onLoadProgressChanged event arguments.
Definition navigation_events.hpp:129
double progress
Load progress value between 0.0 (nothing loaded) to 1.0 (page fully loaded).
Definition navigation_events.hpp:139
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:133
The NavigationEvents::onLoadStarted event arguments.
Definition navigation_events.hpp:205
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:209
The NavigationEvents::onNavigationFinished event arguments.
Definition navigation_events.hpp:47
NetError net_error
The navigation error in case the navigation has failed.
Definition navigation_events.hpp:98
bool has_committed
Indicates if the navigation has committed.
Definition navigation_events.hpp:83
bool is_server_redirect
Indicates if the navigation has encountered a server redirect.
Definition navigation_events.hpp:78
bool is_same_document
Indicates if the navigation will be performed in the scope of the same document.
Definition navigation_events.hpp:67
std::string url
The URL of the navigation.
Definition navigation_events.hpp:61
bool is_fragment_navigation
Indicates if the navigation has been performed to a fragment within the same document.
Definition navigation_events.hpp:73
std::shared_ptr< Frame > frame
The frame in which this navigation is taking place.
Definition navigation_events.hpp:56
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:51
bool is_error_page
Indicates if the navigation resulted in an error page.
Definition navigation_events.hpp:88
bool is_in_main_frame
Indicates if the navigation is taking place in the main frame.
Definition navigation_events.hpp:93
The NavigationEvents::onNavigationRedirected event arguments.
Definition navigation_events.hpp:104
std::string destination_url
The destination URL for the navigation redirect.
Definition navigation_events.hpp:113
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:108
The NavigationEvents::onNavigationStarted event arguments.
Definition navigation_events.hpp:21
std::string url
The URL of the navigation.
Definition navigation_events.hpp:30
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:25
bool is_same_document
Indicates if the navigation will be performed in the scope of the same document.
Definition navigation_events.hpp:36
bool is_in_main_frame
Indicates if the navigation is taking place in the main frame.
Definition navigation_events.hpp:41
The NavigationEvents::onNavigationStopped event arguments.
Definition navigation_events.hpp:119
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:123