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
commit 0d1b5e7f7a
Notes: sideshowbarker 2024-07-17 09:49:33 +09:00
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)