5#ifndef MOBROWSER_NAVIGATION_EVENTS_HPP
6#define MOBROWSER_NAVIGATION_EVENTS_HPP
11#include "mobrowser/base/event.hpp"
12#include "mobrowser/network/network.hpp"
Events allow you to be notified when something happens in MōBrowser.
Definition event.hpp:25
A class that contains all navigation events.
Definition navigation_events.hpp:225
Event< LoadFinished > onLoadFinished
Invoked when the load has been finished.
Definition navigation_events.hpp:357
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< LoadStarted > onLoadStarted
Invoked when the load has been started.
Definition navigation_events.hpp:343
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< FrameLoadFinished > onFrameLoadFinished
Invoked when the frame load has been finished.
Definition navigation_events.hpp:315
Event< NavigationStopped > onNavigationStopped
Invoked when a navigation has been stopped.
Definition navigation_events.hpp:282
Event< NavigationRedirected > onNavigationRedirected
Invoked when a navigation has encountered a server redirect.
Definition navigation_events.hpp:271
Event< NavigationFinished > onNavigationFinished
Invoked when a navigation has been finished.
Definition navigation_events.hpp:260
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< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:149
std::string url
The URL of the resource to load.
Definition navigation_events.hpp:159
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
The NavigationEvents::onFrameLoadFinished event arguments.
Definition navigation_events.hpp:170
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
std::string url
The URL of the resource to load.
Definition navigation_events.hpp:184
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
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:133
double progress
Load progress value between 0.0 (nothing loaded) to 1.0 (page fully loaded).
Definition navigation_events.hpp:139
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
bool has_committed
Indicates if the navigation has committed.
Definition navigation_events.hpp:83
std::string url
The URL of the navigation.
Definition navigation_events.hpp:61
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:51
bool is_in_main_frame
Indicates if the navigation is taking place in the main frame.
Definition navigation_events.hpp:93
bool is_same_document
Indicates if the navigation will be performed in the scope of the same document.
Definition navigation_events.hpp:67
bool is_fragment_navigation
Indicates if the navigation has been performed to a fragment within the same document.
Definition navigation_events.hpp:73
bool is_error_page
Indicates if the navigation resulted in an error page.
Definition navigation_events.hpp:88
bool is_server_redirect
Indicates if the navigation has encountered a server redirect.
Definition navigation_events.hpp:78
std::shared_ptr< Frame > frame
The frame in which this navigation is taking place.
Definition navigation_events.hpp:56
NetError net_error
The navigation error in case the navigation has failed.
Definition navigation_events.hpp:98
The NavigationEvents::onNavigationRedirected event arguments.
Definition navigation_events.hpp:104
std::shared_ptr< Navigation > navigation
The navigation instance initiated this event.
Definition navigation_events.hpp:108
std::string destination_url
The destination URL for the navigation redirect.
Definition navigation_events.hpp:113
The NavigationEvents::onNavigationStarted event arguments.
Definition navigation_events.hpp:21
std::string url
The URL of the navigation.
Definition navigation_events.hpp:30
bool is_in_main_frame
Indicates if the navigation is taking place in the main frame.
Definition navigation_events.hpp:41
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
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