Panda3D
 All Classes Functions Variables Enumerations
Public Member Functions | Static Public Member Functions | List of all members
AwWebViewListener Class Reference

Thin bindings, wraps a WebViewListener. More...

#include "awWebViewListener.h"

Inheritance diagram for AwWebViewListener:
TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

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...
 
- Public Member Functions inherited from TypedReferenceCount
 TypedReferenceCount (const TypedReferenceCount &copy)
 
void operator= (const TypedReferenceCount &copy)
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
const TypedObjectas_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 &copy)
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 Returns the current reference count. More...
 
WeakReferenceListget_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 Public Member Functions inherited from TypedReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
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 Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 

Detailed Description

Thin bindings, wraps a WebViewListener.

Definition at line 27 of file awWebViewListener.h.

Member Function Documentation

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: