1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWebView+WebContent: Add IPCs to navigate the browser's history

This commit is contained in:
Timothy Flynn 2022-11-11 13:33:11 -05:00 committed by Linus Groh
parent f84b2e9e7d
commit 24fb7cd0ad
6 changed files with 48 additions and 0 deletions

View file

@ -33,6 +33,21 @@ void WebContentClient::did_finish_loading(AK::URL const& url)
m_view.notify_server_did_finish_loading({}, url);
}
void WebContentClient::did_request_navigate_back()
{
m_view.notify_server_did_request_navigate_back({});
}
void WebContentClient::did_request_navigate_forward()
{
m_view.notify_server_did_request_navigate_forward({});
}
void WebContentClient::did_request_refresh()
{
m_view.notify_server_did_request_refresh({});
}
void WebContentClient::did_invalidate_content_rect(Gfx::IntRect const& content_rect)
{
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidInvalidateContentRect! content_rect={}", content_rect);