summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebContentClient.cpp
diff options
context:
space:
mode:
authorBrandon Scott <xeons@users.noreply.github.com>2021-02-23 06:17:23 -0600
committerAndreas Kling <kling@serenityos.org>2021-02-23 16:23:56 +0100
commit2f56a86a4ee3db4ca6bf712a11072ff53ef1b603 (patch)
tree3a167d6c7d35d5f6c31b3a86c38863266cc1b4d7 /Userland/Libraries/LibWeb/WebContentClient.cpp
parent306501fd4afa5fb6bf48f15aecd5921597a0d6cc (diff)
downloadserenity-2f56a86a4ee3db4ca6bf712a11072ff53ef1b603.zip
LibWeb: Added get source functionality and hook event
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebContentClient.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp
index c90bbcb6c5..56a25cf7f6 100644
--- a/Userland/Libraries/LibWeb/WebContentClient.cpp
+++ b/Userland/Libraries/LibWeb/WebContentClient.cpp
@@ -131,6 +131,11 @@ void WebContentClient::handle(const Messages::WebContentClient::DidRequestLinkCo
m_view.notify_server_did_request_link_context_menu({}, message.content_position(), message.url(), message.target(), message.modifiers());
}
+void WebContentClient::handle(const Messages::WebContentClient::DidGetSource& message)
+{
+ m_view.notify_server_did_get_source(message.url(), message.source());
+}
+
OwnPtr<Messages::WebContentClient::DidRequestAlertResponse> WebContentClient::handle(const Messages::WebContentClient::DidRequestAlert& message)
{
m_view.notify_server_did_request_alert({}, message.message());