#include <WebViewListener.h>
Public Member Functions | |
virtual void | onBeginNavigation (const std::string &url, const std::wstring &frameName)=0 |
virtual void | onBeginLoading (const std::string &url, const std::wstring &frameName, int statusCode, const std::wstring &mimeType)=0 |
virtual void | onFinishLoading ()=0 |
virtual void | onCallback (const std::wstring &objectName, const std::wstring &callbackName, const Awesomium::JSArguments &args)=0 |
virtual void | onReceiveTitle (const std::wstring &title, const std::wstring &frameName)=0 |
virtual void | onChangeTooltip (const std::wstring &tooltip)=0 |
virtual void | onChangeCursor (const HCURSOR &cursor)=0 |
virtual void | onChangeKeyboardFocus (bool isFocused)=0 |
virtual void | onChangeTargetURL (const std::string &url)=0 |
virtual void Awesomium::WebViewListener::onBeginLoading | ( | const std::string & | url, | |
const std::wstring & | frameName, | |||
int | statusCode, | |||
const std::wstring & | mimeType | |||
) | [pure virtual] |
This event is fired when a WebView begins to actually receive data from a server.
url | The URL of the frame that is being loaded. | |
frameName | The name of the frame that this event originated from. | |
statusCode | The HTTP status code returned by the server. | |
mimeType | The mime-type of the content that is being loaded. |
virtual void Awesomium::WebViewListener::onBeginNavigation | ( | const std::string & | url, | |
const std::wstring & | frameName | |||
) | [pure virtual] |
This event is fired when a WebView begins navigating to a new URL.
url | The URL that is being navigated to. | |
frameName | The name of the frame that this event originated from. |
virtual void Awesomium::WebViewListener::onCallback | ( | const std::wstring & | objectName, | |
const std::wstring & | callbackName, | |||
const Awesomium::JSArguments & | args | |||
) | [pure virtual] |
This event is fired when a Client callback has been invoked via Javascript from a page.
objectName | The name of the Javascript Object that contains the invoked callback. | |
callbackName | The name of the callback that was invoked (must have been previously bound via WebView::setObjectCallback). | |
args | The arguments passed to the callback. |
virtual void Awesomium::WebViewListener::onChangeCursor | ( | const HCURSOR & | cursor | ) | [pure virtual] |
This event is fired when a cursor has changed state. [Windows-only]
cursor | The cursor handle/type. |
virtual void Awesomium::WebViewListener::onChangeKeyboardFocus | ( | bool | isFocused | ) | [pure virtual] |
This event is fired when keyboard focus has changed.
isFocused | Whether or not the keyboard is currently focused. |
virtual void Awesomium::WebViewListener::onChangeTargetURL | ( | const std::string & | url | ) | [pure virtual] |
This event is fired when the target URL has changed. This is usually the result of hovering over a link on the page.
url | The updated target URL (or empty if the target URL is cleared). |
virtual void Awesomium::WebViewListener::onChangeTooltip | ( | const std::wstring & | tooltip | ) | [pure virtual] |
This event is fired when a tooltip has changed state.
tooltip | The tooltip text (or, is an empty string when the tooltip should disappear). |
virtual void Awesomium::WebViewListener::onFinishLoading | ( | ) | [pure virtual] |
This event is fired when all loads have finished for a WebView.
virtual void Awesomium::WebViewListener::onReceiveTitle | ( | const std::wstring & | title, | |
const std::wstring & | frameName | |||
) | [pure virtual] |
This event is fired when a page title is received.
title | The page title. | |
frameName | The name of the frame that this event originated from. |