1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

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
parent 424e80ee75
commit 3c1c2994f1
5 changed files with 25 additions and 0 deletions

View file

@ -85,6 +85,7 @@ public:
void set_window_size(Gfx::IntSize const&);
Gfx::ShareableBitmap take_screenshot() const;
Gfx::ShareableBitmap take_element_screenshot(i32 element_id);
Messages::WebContentServer::WebdriverExecuteScriptResponse webdriver_execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async);