mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +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
|
@ -189,8 +189,8 @@ Tab::Tab()
|
|||
m_link_context_menu->popup(screen_position);
|
||||
};
|
||||
|
||||
m_page_view->on_link_middle_click = [this](auto& href) {
|
||||
m_page_view->on_link_click(href, "_blank", 0);
|
||||
hooks().on_link_middle_click = [this](auto& href, auto&, auto) {
|
||||
hooks().on_link_click(href, "_blank", 0);
|
||||
};
|
||||
|
||||
m_page_view->on_title_change = [this](auto& title) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue