Awesomium::WebViewListener Class Reference

#include <WebViewListener.h>

List of all members.

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


Detailed Description

WebViewListener is a virtual interface that you can use to receive notifications from a certain WebView. Simply make a class that inherits from WebViewListener and register it via WebView::setListener.

Member Function Documentation

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.

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

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

Parameters:
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]

Parameters:
cursor The cursor handle/type.

virtual void Awesomium::WebViewListener::onChangeKeyboardFocus ( bool  isFocused  )  [pure virtual]

This event is fired when keyboard focus has changed.

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

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

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

Parameters:
title The page title.
frameName The name of the frame that this event originated from.


The documentation for this class was generated from the following file:

Generated on Wed Sep 23 14:27:48 2009 for Awesomium by  doxygen 1.5.8