mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 16:05:07 +00:00
LibWeb: Add a shared WebViewHooks base class for both web view widgets
This will make it easier for Browser to share code between both views.
This commit is contained in:
parent
7a7e39c7af
commit
49b9a0a665
5 changed files with 60 additions and 21 deletions
|
@ -213,10 +213,10 @@ void PageView::page_did_click_link(const URL& url, const String& target, unsigne
|
|||
on_link_click(url, target, modifiers);
|
||||
}
|
||||
|
||||
void PageView::page_did_middle_click_link(const URL& url, [[maybe_unused]] const String& target, [[maybe_unused]] unsigned modifiers)
|
||||
void PageView::page_did_middle_click_link(const URL& url, const String& target, unsigned modifiers)
|
||||
{
|
||||
if (on_link_middle_click)
|
||||
on_link_middle_click(url);
|
||||
on_link_middle_click(url, target, modifiers);
|
||||
}
|
||||
|
||||
void PageView::page_did_enter_tooltip_area(const Gfx::IntPoint& content_position, const String& title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue