summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-01-12 19:58:00 +0000
committerAndreas Kling <kling@serenityos.org>2023-01-12 23:39:36 +0100
commitf313708237f5f39ca9774b6a8d394db979078bcd (patch)
treebb96dbd6fedbe28a013870d94b96c9f3d836ae69
parent5d9f4b2ffc43e83df44c715b0c296cafcfaabfe0 (diff)
downloadserenity-f313708237f5f39ca9774b6a8d394db979078bcd.zip
LibWebView+Ladybird: Move get source request to ViewImplementation
-rw-r--r--Ladybird/WebContentView.cpp5
-rw-r--r--Ladybird/WebContentView.h2
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.cpp5
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.h1
-rw-r--r--Userland/Libraries/LibWebView/ViewImplementation.cpp5
-rw-r--r--Userland/Libraries/LibWebView/ViewImplementation.h1
6 files changed, 6 insertions, 13 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp
index 9655eed292..1709592170 100644
--- a/Ladybird/WebContentView.cpp
+++ b/Ladybird/WebContentView.cpp
@@ -925,11 +925,6 @@ void WebContentView::notify_server_did_request_dismiss_dialog(Badge<WebContentCl
m_dialog->reject();
}
-void WebContentView::get_source()
-{
- client().async_get_source();
-}
-
void WebContentView::notify_server_did_get_source(AK::URL const& url, DeprecatedString const& source)
{
emit got_source(url, qstring_from_ak_deprecated_string(source));
diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h
index a5c631d2a1..e8a750aacc 100644
--- a/Ladybird/WebContentView.h
+++ b/Ladybird/WebContentView.h
@@ -93,8 +93,6 @@ public:
void debug_request(DeprecatedString const& request, DeprecatedString const& argument);
- void get_source();
-
void run_javascript(DeprecatedString const& js_source);
void did_output_js_console_message(i32 message_index);
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
index 39edbd63d1..805bd699f3 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
@@ -565,11 +565,6 @@ void OutOfProcessWebView::debug_request(DeprecatedString const& request, Depreca
client().async_debug_request(request, argument);
}
-void OutOfProcessWebView::get_source()
-{
- client().async_get_source();
-}
-
void OutOfProcessWebView::inspect_dom_tree()
{
client().async_inspect_dom_tree();
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
index e75200fbbe..b817d8f892 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
@@ -40,7 +40,6 @@ public:
void load_empty_document();
void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
- void get_source();
void inspect_dom_tree();
struct DOMNodeProperties {
diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp
index 66d84fdcab..800ade5d4f 100644
--- a/Userland/Libraries/LibWebView/ViewImplementation.cpp
+++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp
@@ -42,4 +42,9 @@ void ViewImplementation::reset_zoom()
update_zoom();
}
+void ViewImplementation::get_source()
+{
+ client().async_get_source();
+}
+
}
diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h
index 34fac89815..fc0b173f6c 100644
--- a/Userland/Libraries/LibWebView/ViewImplementation.h
+++ b/Userland/Libraries/LibWebView/ViewImplementation.h
@@ -22,6 +22,7 @@ public:
void zoom_in();
void zoom_out();
void reset_zoom();
+ void get_source();
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) = 0;
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) = 0;