1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWebView+WebContent: Add an IPC to take a full document screenshot

This commit is contained in:
Timothy Flynn 2022-11-05 00:09:41 -04:00 committed by Andreas Kling
parent 59b1dfa4e5
commit 95e591b61b
5 changed files with 22 additions and 0 deletions

View file

@ -53,6 +53,7 @@ endpoint WebContentServer
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)
take_document_screenshot() => (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)