LibWeb+LibWebView+WebContent: Remove unused back/forward navigation IPCs

This commit is contained in:
Timothy Flynn 2024-11-05 16:31:00 -05:00 committed by Andreas Kling
parent 1a8a3979f9
commit 413cf6b329
Notes: github-actions[bot] 2024-11-06 09:55:09 +00:00
6 changed files with 0 additions and 30 deletions

View file

@ -311,8 +311,6 @@ public:
virtual void paint(DevicePixelRect const&, Painting::BackingStore&, PaintOptions = {}) = 0;
virtual void page_did_change_title(ByteString const&) { }
virtual void page_did_change_url(URL::URL const&) { }
virtual void page_did_request_navigate_back() { }
virtual void page_did_request_navigate_forward() { }
virtual void page_did_request_refresh() { }
virtual void page_did_request_resize_window(Gfx::IntSize) { }
virtual void page_did_request_reposition_window(Gfx::IntPoint) { }

View file

@ -100,18 +100,6 @@ void WebContentClient::did_find_in_page(u64 page_id, size_t current_match_index,
}
}
void WebContentClient::did_request_navigate_back(u64 page_id)
{
if (auto view = view_for_page_id(page_id); view.has_value())
view->traverse_the_history_by_delta(-1);
}
void WebContentClient::did_request_navigate_forward(u64 page_id)
{
if (auto view = view_for_page_id(page_id); view.has_value())
view->traverse_the_history_by_delta(1);
}
void WebContentClient::did_request_refresh(u64 page_id)
{
if (auto view = view_for_page_id(page_id); view.has_value())

View file

@ -51,8 +51,6 @@ private:
virtual void did_paint(u64 page_id, Gfx::IntRect const&, i32) override;
virtual void did_finish_loading(u64 page_id, URL::URL const&) override;
virtual void did_request_navigate_back(u64 page_id) override;
virtual void did_request_navigate_forward(u64 page_id) override;
virtual void did_request_refresh(u64 page_id) override;
virtual void did_request_cursor_change(u64 page_id, i32) override;
virtual void did_layout(u64 page_id, Gfx::IntSize) override;

View file

@ -246,16 +246,6 @@ void PageClient::page_did_change_url(URL::URL const& url)
client().async_did_change_url(m_id, url);
}
void PageClient::page_did_request_navigate_back()
{
client().async_did_request_navigate_back(m_id);
}
void PageClient::page_did_request_navigate_forward()
{
client().async_did_request_navigate_forward(m_id);
}
void PageClient::page_did_request_refresh()
{
client().async_did_request_refresh(m_id);

View file

@ -109,8 +109,6 @@ private:
virtual void page_did_layout() override;
virtual void page_did_change_title(ByteString const&) override;
virtual void page_did_change_url(URL::URL const&) override;
virtual void page_did_request_navigate_back() override;
virtual void page_did_request_navigate_forward() override;
virtual void page_did_request_refresh() override;
virtual void page_did_request_resize_window(Gfx::IntSize) override;
virtual void page_did_request_reposition_window(Gfx::IntPoint) override;

View file

@ -22,8 +22,6 @@ endpoint WebContentClient
{
did_start_loading(u64 page_id, URL::URL url, bool is_redirect) =|
did_finish_loading(u64 page_id, URL::URL url) =|
did_request_navigate_back(u64 page_id) =|
did_request_navigate_forward(u64 page_id) =|
did_request_refresh(u64 page_id) =|
did_paint(u64 page_id, Gfx::IntRect content_rect, i32 bitmap_id) =|
did_request_cursor_change(u64 page_id, i32 cursor_type) =|