Panda3D
Public Member Functions | Static Public Member Functions

AwWebViewListener Class Reference

Thin bindings, wraps a WebViewListener. More...

#include "awWebViewListener.h"

Inheritance diagram for AwWebViewListener:
TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

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.

Detailed Description

Thin bindings, wraps a WebViewListener.

Definition at line 27 of file awWebViewListener.h.


Member Function Documentation

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.

Parameters:
urlThe URL of the frame that is being loaded.
frameNameThe name of the frame that this event originated from.
statusCodeThe HTTP status code returned by the server.
mimeTypeThe 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.

Parameters:
urlThe URL that is being navigated to.
frameNameThe 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.

Parameters:
nameThe name of the client callback that was invoked (specifically, "Client._this_name_here_(...)").
argsThe 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.

Parameters:
isFocusedWhether 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.

Parameters:
urlThe 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.

Parameters:
tooltipThe 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.

Parameters:
titleThe page title.
frameNameThe name of the frame that this event originated from.

Definition at line 55 of file awWebViewListener.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations