mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Ladybird+LibWebView: Migrate tooltip changes to LibWebView callbacks
This commit is contained in:
parent
78d9339aa9
commit
5116e97a9d
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/trflynn89
Commit: 5116e97a9d
Pull-request: https://github.com/SerenityOS/serenity/pull/20727
Reviewed-by: https://github.com/awesomekling ✅
10 changed files with 27 additions and 53 deletions
|
@ -128,12 +128,14 @@ void WebContentClient::did_request_scroll_into_view(Gfx::IntRect const& rect)
|
|||
|
||||
void WebContentClient::did_enter_tooltip_area(Gfx::IntPoint content_position, DeprecatedString const& title)
|
||||
{
|
||||
m_view.notify_server_did_enter_tooltip_area({}, content_position, title);
|
||||
if (m_view.on_enter_tooltip_area)
|
||||
m_view.on_enter_tooltip_area(m_view.to_widget_position(content_position), title);
|
||||
}
|
||||
|
||||
void WebContentClient::did_leave_tooltip_area()
|
||||
{
|
||||
m_view.notify_server_did_leave_tooltip_area({});
|
||||
if (m_view.on_leave_tooltip_area)
|
||||
m_view.on_leave_tooltip_area();
|
||||
}
|
||||
|
||||
void WebContentClient::did_hover_link(AK::URL const& url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue