LibWebView+WebContent: Add an IPC to scroll an element into view

Note that even though there is no response, this IPC has to be
synchronous to allow all scroll events to trigger before returning to
the calling WebDriver process.
This commit is contained in:
Timothy Flynn 2022-11-04 15:49:15 -04:00 committed by Linus Groh
commit 424e80ee75
Notes: sideshowbarker 2024-07-17 04:47:08 +09:00
5 changed files with 28 additions and 0 deletions

View file

@ -85,6 +85,7 @@ private:
virtual Messages::WebContentServer::GetDocumentElementResponse get_document_element() override;
virtual Messages::WebContentServer::QuerySelectorAllResponse query_selector_all(i32 start_node_id, String const& selector) override;
virtual void scroll_element_into_view(i32 element_id) override;
virtual Messages::WebContentServer::IsElementSelectedResponse is_element_selected(i32 element_id) override;
virtual Messages::WebContentServer::GetElementAttributeResponse get_element_attribute(i32 element_id, String const& name) override;
virtual Messages::WebContentServer::GetElementPropertyResponse get_element_property(i32 element_id, String const& name) override;