mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:55:07 +00:00
WebContent: Plumb hovered links from WebContent process over to widget
Also add a little GUI::StatusBar to the demo app so we can see the hovered link URL's live. :^)
This commit is contained in:
parent
aac362b883
commit
58b1ba2545
8 changed files with 61 additions and 1 deletions
|
@ -98,3 +98,19 @@ void WebContentClient::handle(const Messages::WebContentClient::DidRequestScroll
|
|||
#endif
|
||||
m_view.notify_server_did_request_scroll_into_view({}, message.rect());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidHoverLink& message)
|
||||
{
|
||||
#ifdef DEBUG_SPAM
|
||||
dbg() << "handle: WebContentClient::DidHoverLink! url=" << message.url();
|
||||
#endif
|
||||
m_view.notify_server_did_hover_link({}, message.url());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidUnhoverLink&)
|
||||
{
|
||||
#ifdef DEBUG_SPAM
|
||||
dbg() << "handle: WebContentClient::DidUnhoverLink!";
|
||||
#endif
|
||||
m_view.notify_server_did_unhover_link({});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue