LibWebView+WebContent: Add an IPC to take an element screenshot

This commit is contained in:
Timothy Flynn 2022-11-04 17:08:02 -04:00 committed by Linus Groh
commit 3c1c2994f1
Notes: sideshowbarker 2024-07-17 04:47:04 +09:00
5 changed files with 25 additions and 0 deletions

View file

@ -52,6 +52,7 @@ endpoint WebContentServer
get_element_tag_name(i32 element_id) => (String tag_name)
get_element_rect(i32 element_id) => (Gfx::IntRect rect)
is_element_enabled(i32 element_id) => (bool enabled)
take_element_screenshot(i32 element_id) => (Gfx::ShareableBitmap data)
webdriver_execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result)