1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Ladybird: Add a context menu for link elements

This commit is contained in:
Timothy Flynn 2023-05-15 12:48:46 -04:00 committed by Andreas Kling
parent 1b2394d92e
commit 0d1b5e7f7a
3 changed files with 38 additions and 3 deletions

View file

@ -872,9 +872,8 @@ void WebContentView::notify_server_did_request_context_menu(Badge<WebContentClie
void WebContentView::notify_server_did_request_link_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position, AK::URL const& url, DeprecatedString const&, unsigned)
{
// FIXME
(void)content_position;
(void)url;
if (on_link_context_menu_request)
on_link_context_menu_request(url, to_widget(content_position));
}
void WebContentView::notify_server_did_request_image_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position, AK::URL const& url, DeprecatedString const&, unsigned, Gfx::ShareableBitmap const& bitmap)