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. More... | |
void | onBeginNavigation (const std::string &url, const std::wstring &frameName) |
This event is fired when a WebView begins navigating to a new URL. More... | |
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. More... | |
void | onChangeKeyboardFocus (bool isFocused) |
This event is fired when keyboard focus has changed. More... | |
void | onChangeTargetURL (const std::string &url) |
This event is fired when the target URL has changed. More... | |
void | onChangeTooltip (const std::wstring &tooltip) |
This event is fired when a tooltip has changed state. More... | |
void | onFinishLoading () |
This event is fired when all loads have finished for a WebView. More... | |
void | onReceiveTitle (const std::wstring &title, const std::wstring &frameName) |
This event is fired when a page title is received. More... | |
![]() | |
TypedReferenceCount (const TypedReferenceCount ©) | |
void | operator= (const TypedReferenceCount ©) |
![]() | |
TypedObject (const TypedObject ©) | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. More... | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. More... | |
void | operator= (const TypedObject ©) |
![]() | |
int | get_ref_count () const |
Returns the current reference count. More... | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. More... | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More... | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More... | |
void | ref () const |
Explicitly increments the reference count. More... | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
virtual bool | unref () const |
Explicitly decrements the reference count. More... | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. More... | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. More... | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
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. More... | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Thin bindings, wraps a WebViewListener.
Definition at line 27 of file awWebViewListener.h.
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.