mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:17:45 +00:00
LibWeb+WebContent: Support displaying tooltips in OOPWV
This commit is contained in:
parent
c503047c71
commit
5b617df496
7 changed files with 39 additions and 0 deletions
|
@ -133,6 +133,16 @@ void PageHost::page_did_request_scroll_into_view(const Gfx::IntRect& rect)
|
|||
m_client.post_message(Messages::WebContentClient::DidRequestScrollIntoView(rect));
|
||||
}
|
||||
|
||||
void PageHost::page_did_enter_tooltip_area(const Gfx::IntPoint& content_position, const String& title)
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidEnterTooltipArea(content_position, title));
|
||||
}
|
||||
|
||||
void PageHost::page_did_leave_tooltip_area()
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidLeaveTooltipArea());
|
||||
}
|
||||
|
||||
void PageHost::page_did_hover_link(const URL& url)
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidHoverLink(url));
|
||||
|
|
|
@ -61,6 +61,8 @@ private:
|
|||
virtual void page_did_change_title(const String&) override;
|
||||
virtual void page_did_request_scroll(int) override;
|
||||
virtual void page_did_request_scroll_into_view(const Gfx::IntRect&) override;
|
||||
virtual void page_did_enter_tooltip_area(const Gfx::IntPoint&, const String&) override;
|
||||
virtual void page_did_leave_tooltip_area() override;
|
||||
virtual void page_did_hover_link(const URL&) override;
|
||||
virtual void page_did_unhover_link() override;
|
||||
virtual void page_did_click_link(const URL&, const String& target, unsigned modifiers) override;
|
||||
|
|
|
@ -10,6 +10,8 @@ endpoint WebContentClient = 90
|
|||
DidChangeTitle(String title) =|
|
||||
DidRequestScroll(int wheel_delta) =|
|
||||
DidRequestScrollIntoView(Gfx::IntRect rect) =|
|
||||
DidEnterTooltipArea(Gfx::IntPoint content_position, String title) =|
|
||||
DidLeaveTooltipArea() =|
|
||||
DidHoverLink(URL url) =|
|
||||
DidUnhoverLink() =|
|
||||
DidClickLink(URL url, String target, unsigned modifiers) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue