summaryrefslogtreecommitdiff
path: root/Demos/WebView/WebContentClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/WebView/WebContentClient.cpp')
-rw-r--r--Demos/WebView/WebContentClient.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Demos/WebView/WebContentClient.cpp b/Demos/WebView/WebContentClient.cpp
index 3835c3ebbb..0042cc14db 100644
--- a/Demos/WebView/WebContentClient.cpp
+++ b/Demos/WebView/WebContentClient.cpp
@@ -114,3 +114,13 @@ void WebContentClient::handle(const Messages::WebContentClient::DidUnhoverLink&)
#endif
m_view.notify_server_did_unhover_link({});
}
+
+void WebContentClient::handle(const Messages::WebContentClient::DidClickLink& message)
+{
+ m_view.notify_server_did_click_link({}, message.url(), message.target(), message.modifiers());
+}
+
+void WebContentClient::handle(const Messages::WebContentClient::DidMiddleClickLink& message)
+{
+ m_view.notify_server_did_middle_click_link({}, message.url(), message.target(), message.modifiers());
+}