diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-03-30 12:10:06 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-30 21:21:17 +0200 |
commit | 5b617df49659ff302fc0aa590c26aedd6473e053 (patch) | |
tree | cdb3a2555d9bc556e3fad71ba58d7bba3698cf6a /Userland/Libraries/LibWeb/WebContentClient.cpp | |
parent | c503047c71acbb9f1650f6c877cd9e53af3f2541 (diff) | |
download | serenity-5b617df49659ff302fc0aa590c26aedd6473e053.zip |
LibWeb+WebContent: Support displaying tooltips in OOPWV
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/WebContentClient.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp index f049f21cb2..3988db3d8e 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.cpp +++ b/Userland/Libraries/LibWeb/WebContentClient.cpp @@ -106,6 +106,16 @@ void WebContentClient::handle(const Messages::WebContentClient::DidRequestScroll m_view.notify_server_did_request_scroll_into_view({}, message.rect()); } +void WebContentClient::handle(const Messages::WebContentClient::DidEnterTooltipArea& message) +{ + m_view.notify_server_did_enter_tooltip_area({}, message.content_position(), message.title()); +} + +void WebContentClient::handle(const Messages::WebContentClient::DidLeaveTooltipArea&) +{ + m_view.notify_server_did_leave_tooltip_area({}); +} + void WebContentClient::handle(const Messages::WebContentClient::DidHoverLink& message) { dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidHoverLink! url={}", message.url()); |