00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __WEBVIEWLISTENER_H__
00009 #define __WEBVIEWLISTENER_H__
00010
00011 #include <string>
00012 #include "JSValue.h"
00013
00014 #if defined(_WIN32)
00015 #include <windows.h>
00016 #endif
00017
00018 namespace Awesomium {
00019
00025 class _OSMExport WebViewListener
00026 {
00027 public:
00035 virtual void onBeginNavigation(const std::string& url, const std::wstring& frameName) = 0;
00036
00048 virtual void onBeginLoading(const std::string& url, const std::wstring& frameName, int statusCode, const std::wstring& mimeType) = 0;
00049
00053 virtual void onFinishLoading() = 0;
00054
00064 virtual void onCallback(const std::wstring& objectName, const std::wstring& callbackName, const Awesomium::JSArguments& args) = 0;
00065
00073 virtual void onReceiveTitle(const std::wstring& title, const std::wstring& frameName) = 0;
00074
00080 virtual void onChangeTooltip(const std::wstring& tooltip) = 0;
00081
00082 #if defined(_WIN32)
00083
00088 virtual void onChangeCursor(const HCURSOR& cursor) = 0;
00089 #endif
00090
00096 virtual void onChangeKeyboardFocus(bool isFocused) = 0;
00097
00104 virtual void onChangeTargetURL(const std::string& url) = 0;
00105 };
00106
00107 }
00108
00109 #endif