mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Make context menus work in WebContentView
As usual, this was just a matter of plumbing the PageClient calls from the WebContent side over to the WebContentView side. :^)
This commit is contained in:
parent
81ea9d1ef6
commit
92374fc942
Notes:
sideshowbarker
2024-07-19 05:02:54 +09:00
Author: https://github.com/awesomekling
Commit: 92374fc942
7 changed files with 40 additions and 0 deletions
|
@ -159,4 +159,14 @@ void PageHost::page_did_start_loading(const URL& url)
|
|||
m_client.post_message(Messages::WebContentClient::DidStartLoading(url));
|
||||
}
|
||||
|
||||
void PageHost::page_did_request_context_menu(const Gfx::IntPoint& content_position)
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidRequestContextMenu(content_position));
|
||||
}
|
||||
|
||||
void PageHost::page_did_request_link_context_menu(const Gfx::IntPoint& content_position, const URL& url, const String& target, unsigned modifiers)
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidRequestLinkContextMenu(content_position, url, target, modifiers));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue