summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-01-12 20:34:08 +0000
committerAndreas Kling <kling@serenityos.org>2023-01-12 23:39:36 +0100
commit55609f744d0293a6596a414f110a2535eb0d0486 (patch)
treef85bc63c4b38df046eb6cf26a411d1b4e7418a4f /Userland/Libraries
parentde1c0c87fe622c7a71669a93a7f11ffcb1daa1a2 (diff)
downloadserenity-55609f744d0293a6596a414f110a2535eb0d0486.zip
LibWebView+Ladybird: Move debug request to ViewImplementation
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.cpp5
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.h2
-rw-r--r--Userland/Libraries/LibWebView/ViewImplementation.cpp5
-rw-r--r--Userland/Libraries/LibWebView/ViewImplementation.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
index 70cadabefc..de3c440b45 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
@@ -542,11 +542,6 @@ void OutOfProcessWebView::request_repaint()
client().async_paint(m_client_state.back_bitmap.bitmap->rect().translated(horizontal_scrollbar().value(), vertical_scrollbar().value()), m_client_state.back_bitmap.id);
}
-void OutOfProcessWebView::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
-{
- client().async_debug_request(request, argument);
-}
-
void OutOfProcessWebView::js_console_input(DeprecatedString const& js_source)
{
client().async_js_console_input(js_source);
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
index da68fde498..a1cf73548c 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
@@ -33,8 +33,6 @@ class OutOfProcessWebView final
public:
virtual ~OutOfProcessWebView() override;
- void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
-
void js_console_input(DeprecatedString const& js_source);
void js_console_request_messages(i32 start_index);
diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp
index ab3a172982..87818c828e 100644
--- a/Userland/Libraries/LibWebView/ViewImplementation.cpp
+++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp
@@ -99,4 +99,9 @@ i32 ViewImplementation::get_hovered_node_id()
return client().get_hovered_node_id();
}
+void ViewImplementation::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
+{
+ client().async_debug_request(request, argument);
+}
+
}
diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h
index b3c27af8a4..8d88e216b4 100644
--- a/Userland/Libraries/LibWebView/ViewImplementation.h
+++ b/Userland/Libraries/LibWebView/ViewImplementation.h
@@ -46,6 +46,8 @@ public:
void clear_inspected_dom_node();
i32 get_hovered_node_id();
+ void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
+
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;
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) = 0;