1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 21:45:06 +00:00

LibWeb: Make the link context menu hook include the destination URL

This commit is contained in:
Andreas Kling 2020-07-06 20:00:56 +02:00
parent 02c5e22f06
commit fd65a24834
6 changed files with 13 additions and 13 deletions

View file

@ -201,10 +201,10 @@ void PageView::page_did_request_context_menu(const Gfx::IntPoint& content_positi
on_context_menu_request(screen_relative_rect().location().translated(to_widget_position(content_position)));
}
void PageView::page_did_request_link_context_menu(const Gfx::IntPoint& content_position, const String& href, [[maybe_unused]] const String& target, [[maybe_unused]] unsigned modifiers)
void PageView::page_did_request_link_context_menu(const Gfx::IntPoint& content_position, const URL& url, [[maybe_unused]] const String& target, [[maybe_unused]] unsigned modifiers)
{
if (on_link_context_menu_request)
on_link_context_menu_request(href, screen_relative_rect().location().translated(to_widget_position(content_position)));
on_link_context_menu_request(url, screen_relative_rect().location().translated(to_widget_position(content_position)));
}
void PageView::page_did_click_link(const URL& url, const String& target, unsigned modifiers)