Project

General

Profile

SO3Engine
SO3EmbeddedWebNavigatorListener.cpp
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OpenSpace3D
4For the latest info, see http://www.openspace3d.com
5
6Copyright (c) 2011 I-maginer
7
8This program is free software; you can redistribute it and/or modify it under
9the terms of the GNU Lesser General Public License as published by the Free Software
10Foundation; either version 2 of the License, or (at your option) any later
11version.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along with
18this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20http://www.gnu.org/copyleft/lesser.txt
21-----------------------------------------------------------------------------
22*/
23
26#if SO3_WEB_NAVIGATOR_BUILD == 1
27
28namespace SO3
29{
30 namespace EmbeddedWebNavigator
31 {
32
33 void WebNavigatorListener::OnExternalCall(WebNavigator* sourceWebNavigator, const SScriptFunction& functionCalled)
34 {
35 // Default implementation does nothing
36 }
37
38 void WebNavigatorListener::OnExternalCallStr(WebNavigator* sourceWebNavigator, const SScriptFunction& functionCalled)
39 {
40 // Default implementation does nothing
41 }
42
43 void WebNavigatorListener::OnNavStateChange(WebNavigator* sourceWebNavigator, bool canGoBack, bool canGoForward)
44 {
45 // Default implementation does nothing
46 }
47
48 void WebNavigatorListener::OnAddressChange(WebNavigator* sourceWebNavigator, const std::string& frameName, const std::string& url)
49 {
50 // Default implementation does nothing
51 }
52
53 void WebNavigatorListener::OnTitleChange(WebNavigator* sourceWebNavigator, const std::string& title)
54 {
55 // Default implementation does nothing
56 }
57
58 void WebNavigatorListener::OnTooltip(WebNavigator* sourceWebNavigator, std::string& text)
59 {
60 // Default implementation does nothing
61 }
62
63 void WebNavigatorListener::OnCursorChange(WebNavigator* sourceWebNavigator, HCURSOR newCursor)
64 {
65 // Default implementation does nothing
66 }
67
68 void WebNavigatorListener::OnStatusMessage(WebNavigator* sourceWebNavigator, const std::string& value)
69 {
70 // Default implementation does nothing
71 }
72
73 void WebNavigatorListener::OnConsoleMessage(WebNavigator* sourceWebNavigator, const std::string& message, const std::string& source, int line)
74 {
75 // Default implementation does nothing
76 }
77
78 void WebNavigatorListener::OnBeforePopup(WebNavigator* sourceWebNavigator, int popupX, int popupY, int popupWidth, int popupHeight, std::string popupUrl)
79 {
80 // Default implementation does nothing
81 }
82
84 {
85 // Default implementation does nothing
86 }
87
88 void WebNavigatorListener::OnLoadStart(WebNavigator* sourceWebNavigator, const std::string& frameName)
89 {
90 // Default implementation does nothing
91 }
92
93 void WebNavigatorListener::OnLoadEnd(WebNavigator* sourceWebNavigator, const std::string& frameName, int httpStatusCode)
94 {
95 // Default implementation does nothing
96 }
97
98 void WebNavigatorListener::OnLoadError(WebNavigator* sourceWebNavigator, const std::string& frameName, int errorCode, const std::string& failedUrl, std::string& errorText)
99 {
100 // Default implementation does nothing
101 }
102
103 void WebNavigatorListener::OnFindResult(WebNavigator* sourceWebNavigator, int identifier, int count, const CefRect& selectionRect, int activeMatchOrdinal, bool finalUpdate)
104 {
105 // Default implementation does nothing
106 }
107
108 }
109}
110
111#endif
void * HCURSOR
Definition SO3Android.h:60
virtual void OnLoadEnd(WebNavigator *sourceWebNavigator, const std::string &frameName, int httpStatusCode)
virtual void OnConsoleMessage(WebNavigator *sourceWebNavigator, const std::string &message, const std::string &source, int line)
virtual void RunModal(WebNavigator *sourceWebNavigator)
virtual void OnExternalCall(WebNavigator *sourceWebNavigator, const SScriptFunction &functionCalled)
virtual void OnLoadError(WebNavigator *sourceWebNavigator, const std::string &frameName, int errorCode, const std::string &failedUrl, std::string &errorText)
virtual void OnAddressChange(WebNavigator *sourceWebNavigator, const std::string &frameName, const std::string &url)
virtual void OnCursorChange(WebNavigator *sourceWebNavigator, HCURSOR newCursor)
virtual void OnExternalCallStr(WebNavigator *sourceWebNavigator, const SScriptFunction &functionCalled)
virtual void OnLoadStart(WebNavigator *sourceWebNavigator, const std::string &frameName)
virtual void OnStatusMessage(WebNavigator *sourceWebNavigator, const std::string &value)
virtual void OnTooltip(WebNavigator *sourceWebNavigator, std::string &text)
virtual void OnBeforePopup(WebNavigator *sourceWebNavigator, int popupX, int popupY, int popupWidth, int popupHeight, std::string popupUrl)
virtual void OnTitleChange(WebNavigator *sourceWebNavigator, const std::string &title)
virtual void OnNavStateChange(WebNavigator *sourceWebNavigator, bool canGoBack, bool canGoForward)
virtual void OnFindResult(WebNavigator *sourceWebNavigator, int identifier, int count, const CefRect &selectionRect, int activeMatchOrdinal, bool finalUpdate)