This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
webview_dummy.cpp
96 lines (69 loc) · 1.81 KB
/
webview_dummy.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*************************************************************************/
/* webview_dummy.cpp */
/*************************************************************************/
#include "webview.h"
WebViewOverlay::WebViewOverlay() {
}
WebViewOverlay::~WebViewOverlay() {
}
void WebViewOverlay::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_DRAW: {
_draw_error("Not supported!");
} break;
default: {
//NOP
} break;
}
}
void WebViewOverlay::get_snapshot(int p_width) {}
void WebViewOverlay::set_no_background(bool p_bg) {
no_background = p_bg;
}
bool WebViewOverlay::get_no_background() const {
return no_background;
}
void WebViewOverlay::set_url(const String& p_url) {
home_url = p_url;
}
String WebViewOverlay::get_url() const {
return home_url;
}
void WebViewOverlay::set_user_agent(const String& p_user_agent) {
user_agent = p_user_agent;
}
String WebViewOverlay::get_user_agent() const {
return user_agent;
}
double WebViewOverlay::get_zoom_level() const {
return zoom;
}
void WebViewOverlay::set_zoom_level(double p_zoom) {
zoom = p_zoom;
}
String WebViewOverlay::get_title() const {
return "";
}
void WebViewOverlay::execute_java_script(const String &p_script) {}
void WebViewOverlay::load_string(const String &p_source) {}
bool WebViewOverlay::can_go_back() const {
return false;
}
bool WebViewOverlay::can_go_forward() const {
return false;
}
bool WebViewOverlay::is_ready() const {
return false;
}
bool WebViewOverlay::is_loading() const {
return false;
}
bool WebViewOverlay::is_secure_content() const {
return false;
}
void WebViewOverlay::go_back() {}
void WebViewOverlay::go_forward() {}
void WebViewOverlay::reload() {}
void WebViewOverlay::stop() {}
void WebViewOverlay::init() {}
void WebViewOverlay::finish() {}