Ladybird: Stub out new 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-09 12:39:16 -05:00 committed by Andrew Kaster
parent 15e4d151c3
commit 0b15fd4a12
Notes: sideshowbarker 2024-07-17 06:35:23 +09:00
2 changed files with 29 additions and 0 deletions

View file

@ -909,6 +909,30 @@ void WebContentView::notify_server_did_update_resource_count(i32 count_waiting)
(void)count_waiting;
}
void WebContentView::notify_server_did_request_restore_window()
{
}
Gfx::IntPoint WebContentView::notify_server_did_request_reposition_window(Gfx::IntPoint const&)
{
return {};
}
Gfx::IntSize WebContentView::notify_server_did_request_resize_window(Gfx::IntSize const&)
{
return {};
}
Gfx::IntRect WebContentView::notify_server_did_request_maximize_window()
{
return {};
}
Gfx::IntRect WebContentView::notify_server_did_request_minimize_window()
{
return {};
}
void WebContentView::notify_server_did_request_file(Badge<WebContentClient>, String const& path, i32 request_id)
{
auto file = Core::File::open(path, Core::OpenMode::ReadOnly);

View file

@ -138,6 +138,11 @@ public:
virtual String notify_server_did_request_cookie(Badge<WebContentClient>, const AK::URL& url, Web::Cookie::Source source) override;
virtual void notify_server_did_set_cookie(Badge<WebContentClient>, const AK::URL& url, Web::Cookie::ParsedCookie const& cookie, Web::Cookie::Source source) override;
virtual void notify_server_did_update_resource_count(i32 count_waiting) override;
virtual void notify_server_did_request_restore_window() override;
virtual Gfx::IntPoint notify_server_did_request_reposition_window(Gfx::IntPoint const&) override;
virtual Gfx::IntSize notify_server_did_request_resize_window(Gfx::IntSize const&) override;
virtual Gfx::IntRect notify_server_did_request_maximize_window() override;
virtual Gfx::IntRect notify_server_did_request_minimize_window() override;
virtual void notify_server_did_request_file(Badge<WebContentClient>, String const& path, i32) override;
signals: