1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:57:36 +00:00

Ladybird: Stub out history navigation WebView::ViewImplementation APIs

These were added for WebDriver, which doesn't have a Ladybird
implementation yet.
This commit is contained in:
Timothy Flynn 2022-11-11 14:17:55 -05:00 committed by Andrew Kaster
parent fcc0530e26
commit e592c7691e
2 changed files with 15 additions and 0 deletions

View file

@ -798,6 +798,18 @@ void WebContentView::notify_server_did_finish_loading(Badge<WebContentClient>, A
(void)url;
}
void WebContentView::notify_server_did_request_navigate_back(Badge<WebContentClient>)
{
}
void WebContentView::notify_server_did_request_navigate_forward(Badge<WebContentClient>)
{
}
void WebContentView::notify_server_did_request_refresh(Badge<WebContentClient>)
{
}
void WebContentView::notify_server_did_request_context_menu(Badge<WebContentClient>, Gfx::IntPoint const& content_position)
{
// FIXME

View file

@ -122,6 +122,9 @@ public:
virtual void notify_server_did_middle_click_link(Badge<WebContentClient>, const AK::URL&, String const& target, unsigned modifiers) override;
virtual void notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL&) override;
virtual void notify_server_did_finish_loading(Badge<WebContentClient>, const AK::URL&) override;
virtual void notify_server_did_request_navigate_back(Badge<WebContentClient>) override;
virtual void notify_server_did_request_navigate_forward(Badge<WebContentClient>) override;
virtual void notify_server_did_request_refresh(Badge<WebContentClient>) override;
virtual void notify_server_did_request_context_menu(Badge<WebContentClient>, Gfx::IntPoint const&) override;
virtual void notify_server_did_request_link_context_menu(Badge<WebContentClient>, Gfx::IntPoint const&, const AK::URL&, String const& target, unsigned modifiers) override;
virtual void notify_server_did_request_image_context_menu(Badge<WebContentClient>, Gfx::IntPoint const&, const AK::URL&, String const& target, unsigned modifiers, Gfx::ShareableBitmap const&) override;