mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Ladybird: Add a context menu for image elements
This commit is contained in:
parent
0d1b5e7f7a
commit
e30dcc7391
3 changed files with 62 additions and 4 deletions
|
@ -878,10 +878,8 @@ void WebContentView::notify_server_did_request_link_context_menu(Badge<WebConten
|
|||
|
||||
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)
|
||||
{
|
||||
// FIXME
|
||||
(void)content_position;
|
||||
(void)url;
|
||||
(void)bitmap;
|
||||
if (on_image_context_menu_request)
|
||||
on_image_context_menu_request(url, to_widget(content_position), bitmap);
|
||||
}
|
||||
|
||||
void WebContentView::notify_server_did_request_video_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position, AK::URL const& url, DeprecatedString const&, unsigned, bool is_playing, bool has_user_agent_controls, bool is_looping)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue