mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:14:58 +00:00
Ladybird: Move the page context menu from the BrowserWindow to the Tab
This will allow us to show different context menus depending on what element is clicked, much like we do for Browser on Serenity.
This commit is contained in:
parent
1df0a141af
commit
a0e31bf1de
5 changed files with 62 additions and 37 deletions
|
@ -866,8 +866,8 @@ void WebContentView::notify_server_did_request_refresh(Badge<WebContentClient>)
|
|||
|
||||
void WebContentView::notify_server_did_request_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position)
|
||||
{
|
||||
// FIXME
|
||||
(void)content_position;
|
||||
if (on_context_menu_request)
|
||||
on_context_menu_request(to_widget(content_position));
|
||||
}
|
||||
|
||||
void WebContentView::notify_server_did_request_link_context_menu(Badge<WebContentClient>, Gfx::IntPoint content_position, AK::URL const& url, DeprecatedString const&, unsigned)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue