mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:07:34 +00:00
LibWeb+WebContent: Add WebContentClient::did_request_scroll_to() call
This call sets the absolute scroll position for the window.
This commit is contained in:
parent
a09219159c
commit
83414af9f3
8 changed files with 21 additions and 0 deletions
|
@ -109,6 +109,11 @@ void PageHost::page_did_request_scroll(i32 x_delta, i32 y_delta)
|
|||
m_client.async_did_request_scroll(x_delta, y_delta);
|
||||
}
|
||||
|
||||
void PageHost::page_did_request_scroll_to(Gfx::IntPoint const& scroll_position)
|
||||
{
|
||||
m_client.async_did_request_scroll_to(scroll_position);
|
||||
}
|
||||
|
||||
void PageHost::page_did_request_scroll_into_view(const Gfx::IntRect& rect)
|
||||
{
|
||||
m_client.async_did_request_scroll_into_view(rect);
|
||||
|
|
|
@ -42,6 +42,7 @@ private:
|
|||
virtual void page_did_layout() override;
|
||||
virtual void page_did_change_title(const String&) override;
|
||||
virtual void page_did_request_scroll(i32, i32) override;
|
||||
virtual void page_did_request_scroll_to(Gfx::IntPoint const&) override;
|
||||
virtual void page_did_request_scroll_into_view(const Gfx::IntRect&) override;
|
||||
virtual void page_did_enter_tooltip_area(const Gfx::IntPoint&, const String&) override;
|
||||
virtual void page_did_leave_tooltip_area() override;
|
||||
|
|
|
@ -13,6 +13,7 @@ endpoint WebContentClient
|
|||
did_layout(Gfx::IntSize content_size) =|
|
||||
did_change_title(String title) =|
|
||||
did_request_scroll(i32 x_delta, i32 y_delta) =|
|
||||
did_request_scroll_to(Gfx::IntPoint scroll_position) =|
|
||||
did_request_scroll_into_view(Gfx::IntRect rect) =|
|
||||
did_enter_tooltip_area(Gfx::IntPoint content_position, String title) =|
|
||||
did_leave_tooltip_area() =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue