Panda3D

awWebViewListener.cxx

00001 // Filename: awWebView.cxx
00002 // Created by:  rurbino (12Oct09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_awesomium.h"
00016 #include "awWebViewListener.h"
00017 
00018 TypeHandle AwWebViewListener::_type_handle;
00019 
00020 AwWebViewListener::
00021 AwWebViewListener()  {  
00022   awesomium_cat.info() << "constructing WebViewListner" ;
00023 }
00024 
00025 void AwWebViewListener::onBeginNavigation(const std::string& url, const std::wstring& frameName){
00026 }
00027 
00028 void AwWebViewListener::onBeginLoading(const std::string& url, const std::wstring& frameName, int statusCode, const std::wstring& mimeType) {
00029   awesomium_cat.info() << "onBeginLoading" ;
00030 }
00031 
00032   /**
00033   * This event is fired when all loads have finished for a WebView.
00034   */
00035 void AwWebViewListener::onFinishLoading() {
00036 }
00037 
00038   /**
00039   * This event is fired when a Client callback has been invoked via Javascript from a page.
00040   *
00041   * @param  name  The name of the client callback that was invoked (specifically, "Client._this_name_here_(...)").
00042   *
00043   * @param  args  The arguments passed to the callback.
00044   */
00045 void AwWebViewListener::onCallback(const std::string& name, const Awesomium::JSArguments& args) {
00046 }
00047   
00048   /**
00049   * This event is fired when a page title is received.
00050   *
00051   * @param  title The page title.
00052   *
00053   * @param  frameName The name of the frame that this event originated from.
00054   */
00055 void AwWebViewListener::onReceiveTitle(const std::wstring& title, const std::wstring& frameName) {
00056 }
00057 
00058   /**
00059   * This event is fired when a tooltip has changed state.
00060   *
00061   * @param  tooltip   The tooltip text (or, is an empty string when the tooltip should disappear).
00062   */
00063 void AwWebViewListener::onChangeTooltip(const std::wstring& tooltip) {
00064 }
00065 
00066   /**
00067   * This event is fired when keyboard focus has changed.
00068   *
00069   * @param  isFocused Whether or not the keyboard is currently focused.
00070   */
00071 void AwWebViewListener::onChangeKeyboardFocus(bool isFocused) {
00072 }
00073 
00074   /**
00075   * This event is fired when the target URL has changed. This is usually the result of 
00076   * hovering over a link on the page.
00077   *
00078   * @param  url The updated target URL (or empty if the target URL is cleared).
00079   */
00080 void AwWebViewListener::onChangeTargetURL(const std::string& url) {
00081 }
 All Classes Functions Variables Enumerations