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

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

#include <browser_events.hpp>

Inheritance diagram for molybden::BrowserEvents:
molybden::Browser

Public Attributes

Event< TitleChangedonTitleChanged
 Invoked when the web page title has been changed.
 
Event< StatusChangedonStatusChanged
 Invoked when the status text has been changed.
 
Event< FrameCreatedonFrameCreated
 Invoked when a new frame has been created.
 
Event< FrameDeletedonFrameDeleted
 Invoked when a frame has been deleted.
 
Event< ConsoleMessageReceivedonConsoleMessageReceived
 Invoked when a JavaScript console message has been received.
 
Event< BrowserBecameResponsiveonBecameResponsive
 Invoked when the browser has become responsive.
 
Event< BrowserBecameUnresponsiveonBecameUnresponsive
 Invoked when browser has become unresponsive.
 
Event< RenderProcessStartedonRenderProcessStarted
 Invoked when a new Chromium render process has been started.
 
Event< RenderProcessTerminatedonRenderProcessTerminated
 Invoked when the Chromium render process has been terminated.
 
Event< CaptureSessionStartedonCaptureSessionStarted
 Invoked browser has started a capture session.
 
Event< SpellCheckCompletedonSpellCheckCompleted
 Invoked when spell checking on the frame has been completed.
 
Event< MediaStreamCaptureStartedonMediaStreamCaptureStarted
 Invoked when a web page has started capturing an audio or video stream.
 
Event< MediaStreamCaptureStoppedonMediaStreamCaptureStopped
 Invoked when a web page has stopped capturing an audio or video stream.
 
Event< BrowserClosedonBrowserClosed
 Invoked when browser instance has been closed.
 
Event< FullScreenEnteredonFullScreenEntered
 Invoked when browser has entered the full screen mode.
 
Event< FullScreenExitedonFullScreenExited
 Invoked when browser has exited the full screen mode.
 
Event< FocusGainedonFocusGained
 Invoked when the browser has been focused.
 
Event< FocusLostonFocusLost
 Invoked when browser has lost focus.
 

Detailed Description

A class that contains all browser events.

Member Data Documentation

◆ onBecameResponsive

Event<BrowserBecameResponsive> molybden::BrowserEvents::onBecameResponsive

Invoked when the browser has become responsive.

Use the following approach to subscribe to receiving the event:

browser->onBecameResponsive += [](const BrowserBecameResponsive& event) {};
The BrowserEvents::onBrowserBecameResponsive event arguments.
Definition browser_events.hpp:122

◆ onBecameUnresponsive

Event<BrowserBecameUnresponsive> molybden::BrowserEvents::onBecameUnresponsive

Invoked when browser has become unresponsive.

This event is fired when JavaScript code on the loaded web page is executing for a long period of time (~45 seconds) blocking the web page while user is trying to work with the web page by clicking or typing on it. If the web page does not respond, this event is triggered.

Use the following approach to subscribe to receiving the event:

browser->onBecameUnresponsive += [](const BrowserBecameUnresponsive& event) {};
The BrowserEvents::onBrowserBecameUnresponsive event arguments.
Definition browser_events.hpp:132

◆ onBrowserClosed

Event<BrowserClosed> molybden::BrowserEvents::onBrowserClosed

Invoked when browser instance has been closed.

Use the following approach to subscribe to receiving the event:

browser->onBrowserClosed += [](const BrowserClosed& event) {};
The BrowserEvents::onBrowserClosed event arguments.
Definition browser_events.hpp:186

◆ onCaptureSessionStarted

Event<CaptureSessionStarted> molybden::BrowserEvents::onCaptureSessionStarted

Invoked browser has started a capture session.

Use the following approach to subscribe to receiving the event:

browser->onCaptureSessionStarted += [](const CaptureSessionStarted& event) {};
The BrowserEvents::onCaptureSessionStarted event arguments.
Definition browser_events.hpp:196

◆ onConsoleMessageReceived

Event<ConsoleMessageReceived> molybden::BrowserEvents::onConsoleMessageReceived

Invoked when a JavaScript console message has been received.

Use the following approach to subscribe to receiving the event:

browser->onConsoleMessageReceived += [](const ConsoleMessageReceived& event) {};
The BrowserEvents::onConsoleMessageReceived event arguments.
Definition browser_events.hpp:92

◆ onFocusGained

Event<FocusGained> molybden::BrowserEvents::onFocusGained

Invoked when the browser has been focused.

Use the following approach to subscribe to receiving the event:

browser->onFocusGained += [](const FocusGained& event) {};
The BrowserEvents::onFocusGained event arguments.
Definition browser_events.hpp:315

◆ onFocusLost

Event<FocusLost> molybden::BrowserEvents::onFocusLost

Invoked when browser has lost focus.

Use the following approach to subscribe to receiving the event:

browser->onFocusLost += [](const FocusLost& event) {};
The BrowserEvents::onFocusLost event arguments.
Definition browser_events.hpp:325

◆ onFrameCreated

Event<FrameCreated> molybden::BrowserEvents::onFrameCreated

Invoked when a new frame has been created.

Use the following approach to subscribe to receiving the event:

browser->onFrameCreated += [](const FrameCreated& event) {};
The BrowserEvents::onFrameCreated event arguments.
Definition browser_events.hpp:50

◆ onFrameDeleted

Event<FrameDeleted> molybden::BrowserEvents::onFrameDeleted

Invoked when a frame has been deleted.

Use the following approach to subscribe to receiving the event:

browser->onFrameDeleted += [](const FrameDeleted& event) {};
The BrowserEvents::onFrameDeleted event arguments.
Definition browser_events.hpp:65

The deleted frames will be marked as invalid and shouldn't be used.

See also
Frame.IsValid()

◆ onFullScreenEntered

Event<FullScreenEntered> molybden::BrowserEvents::onFullScreenEntered

Invoked when browser has entered the full screen mode.

Use the following approach to subscribe to receiving the event:

browser->onFullScreenEntered += [](const FullScreenEntered& event) {};
The BrowserEvents::onFullScreenEntered event arguments.
Definition browser_events.hpp:295

◆ onFullScreenExited

Event<FullScreenExited> molybden::BrowserEvents::onFullScreenExited

Invoked when browser has exited the full screen mode.

Use the following approach to subscribe to receiving the event:

browser->onFullScreenExited += [](const FullScreenExited& event) {};
The BrowserEvents::onFullScreenExited event arguments.
Definition browser_events.hpp:305

◆ onMediaStreamCaptureStarted

Event<MediaStreamCaptureStarted> molybden::BrowserEvents::onMediaStreamCaptureStarted

Invoked when a web page has started capturing an audio or video stream.

Use the following approach to subscribe to receiving the event:

browser->onMediaStreamCaptureStarted += [](const MediaStreamCaptureStarted& event) {};
The BrowserEvents::onMediaStreamCaptureStarted event arguments.
Definition browser_events.hpp:265

◆ onMediaStreamCaptureStopped

Event<MediaStreamCaptureStopped> molybden::BrowserEvents::onMediaStreamCaptureStopped

Invoked when a web page has stopped capturing an audio or video stream.

Use the following approach to subscribe to receiving the event:

browser->onMediaStreamCaptureStopped += [](const MediaStreamCaptureStopped& event) {};
The BrowserEvents::onMediaStreamCaptureStopped event arguments.
Definition browser_events.hpp:280

◆ onRenderProcessStarted

Event<RenderProcessStarted> molybden::BrowserEvents::onRenderProcessStarted

Invoked when a new Chromium render process has been started.

Use the following approach to subscribe to receiving the event:

browser->onRenderProcessStarted += [](const RenderProcessStarted& event) {};
The BrowserEvents::onRenderProcessStarted event arguments.
Definition browser_events.hpp:142

◆ onRenderProcessTerminated

Event<RenderProcessTerminated> molybden::BrowserEvents::onRenderProcessTerminated

Invoked when the Chromium render process has been terminated.

Use the following approach to subscribe to receiving the event:

browser->onRenderProcessTerminated += [](const RenderProcessTerminated& event) {};
The BrowserEvents::onRenderProcessTerminated event arguments.
Definition browser_events.hpp:166

◆ onSpellCheckCompleted

Event<SpellCheckCompleted> molybden::BrowserEvents::onSpellCheckCompleted

Invoked when spell checking on the frame has been completed.

Use the following approach to subscribe to receiving the event:

browser->onSpellCheckCompleted += [](const SpellCheckCompleted& event) {};
The BrowserEvents::onSpellCheckCompleted event arguments.
Definition browser_events.hpp:228

◆ onStatusChanged

Event<StatusChanged> molybden::BrowserEvents::onStatusChanged

Invoked when the status text has been changed.

Use the following approach to subscribe to receiving the event:

browser->onStatusChanged += [](const StatusChanged& event) {};
The BrowserEvents::onStatusChanged event arguments.
Definition browser_events.hpp:35

◆ onTitleChanged

Event<TitleChanged> molybden::BrowserEvents::onTitleChanged

Invoked when the web page title has been changed.

Use the following approach to subscribe to receiving the event:

browser->onTitleChanged += [](const TitleChanged& event) {};
The BrowserEvents::onTitleChanged event arguments.
Definition browser_events.hpp:20

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