Molybden
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< TitleChanged > onTitleChanged
 Invoked when the web page title has been changed.
 
Event< StatusChanged > onStatusChanged
 Invoked when the status text has been changed.
 
Event< FrameCreated > onFrameCreated
 Invoked when a new frame has been created.
 
Event< FrameDeleted > onFrameDeleted
 Invoked when a frame has been deleted.
 
Event< ConsoleMessageReceived > onConsoleMessageReceived
 Invoked when a JavaScript console message has been received.
 
Event< BrowserBecameResponsive > onBecameResponsive
 Invoked when the browser has become responsive.
 
Event< BrowserBecameUnresponsive > onBecameUnresponsive
 Invoked when browser has become unresponsive.
 
Event< RenderProcessStarted > onRenderProcessStarted
 Invoked when a new Chromium render process has been started.
 
Event< RenderProcessTerminated > onRenderProcessTerminated
 Invoked when the Chromium render process has been terminated.
 
Event< FaviconChanged > onFaviconChanged
 Invoked when the web page's favicon has been changed.
 
Event< CaptureSessionStarted > onCaptureSessionStarted
 Invoked browser has started a capture session.
 
Event< SpellCheckCompleted > onSpellCheckCompleted
 Invoked when spell checking on the frame has been completed.
 
Event< MediaStreamCaptureStarted > onMediaStreamCaptureStarted
 Invoked when a web page has started capturing an audio or video stream.
 
Event< MediaStreamCaptureStopped > onMediaStreamCaptureStopped
 Invoked when a web page has stopped capturing an audio or video stream.
 
Event< BrowserClosed > onBrowserClosed
 Invoked when browser instance has been closed.
 

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:211

◆ 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

◆ onFaviconChanged

Event<FaviconChanged> molybden::BrowserEvents::onFaviconChanged

Invoked when the web page's favicon has been changed.

Use the following approach to subscribe to receiving the event:

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

◆ 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()

◆ 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:280

◆ 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:295

◆ 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:243

◆ 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: