Panda3D
|
Thin bindings, wraps a WebViewListener. More...
#include "awWebViewListener.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | onBeginLoading (const std::string &url, const std::wstring &frameName, int statusCode, const std::wstring &mimeType) |
This event is fired when a WebView begins to actually receive data from a server. | |
void | onBeginNavigation (const std::string &url, const std::wstring &frameName) |
This event is fired when a WebView begins navigating to a new URL. | |
void | onCallback (const std::string &name, const Awesomium::JSArguments &args) |
This event is fired when a Client callback has been invoked via Javascript from a page. | |
void | onChangeKeyboardFocus (bool isFocused) |
This event is fired when keyboard focus has changed. | |
void | onChangeTargetURL (const std::string &url) |
This event is fired when the target URL has changed. | |
void | onChangeTooltip (const std::wstring &tooltip) |
This event is fired when a tooltip has changed state. | |
void | onFinishLoading () |
This event is fired when all loads have finished for a WebView. | |
void | onReceiveTitle (const std::wstring &title, const std::wstring &frameName) |
This event is fired when a page title is received. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Thin bindings, wraps a WebViewListener.
Definition at line 27 of file awWebViewListener.h.
static void AwWebViewListener::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedReferenceCount.
Definition at line 108 of file awWebViewListener.h.
References TypedReferenceCount::init_type().
void AwWebViewListener::onBeginLoading | ( | const std::string & | url, |
const std::wstring & | frameName, | ||
int | statusCode, | ||
const std::wstring & | mimeType | ||
) |
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. |
Definition at line 28 of file awWebViewListener.cxx.
void AwWebViewListener::onBeginNavigation | ( | const std::string & | url, |
const std::wstring & | frameName | ||
) |
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. |
Definition at line 25 of file awWebViewListener.cxx.
void AwWebViewListener::onCallback | ( | const std::string & | name, |
const Awesomium::JSArguments & | args | ||
) |
This event is fired when a Client callback has been invoked via Javascript from a page.
name | The name of the client callback that was invoked (specifically, "Client._this_name_here_(...)"). |
args | The arguments passed to the callback. |
Definition at line 45 of file awWebViewListener.cxx.
void AwWebViewListener::onChangeKeyboardFocus | ( | bool | isFocused | ) |
This event is fired when keyboard focus has changed.
isFocused | Whether or not the keyboard is currently focused. |
Definition at line 71 of file awWebViewListener.cxx.
void AwWebViewListener::onChangeTargetURL | ( | const std::string & | url | ) |
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). |
Definition at line 80 of file awWebViewListener.cxx.
void AwWebViewListener::onChangeTooltip | ( | const std::wstring & | tooltip | ) |
This event is fired when a tooltip has changed state.
tooltip | The tooltip text (or, is an empty string when the tooltip should disappear). |
Definition at line 63 of file awWebViewListener.cxx.
void AwWebViewListener::onFinishLoading | ( | ) |
This event is fired when all loads have finished for a WebView.
Definition at line 35 of file awWebViewListener.cxx.
void AwWebViewListener::onReceiveTitle | ( | const std::wstring & | title, |
const std::wstring & | frameName | ||
) |
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. |
Definition at line 55 of file awWebViewListener.cxx.