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

@ -617,6 +617,11 @@ Gfx::ShareableBitmap OutOfProcessWebView::take_screenshot() const
return {};
}
Gfx::ShareableBitmap OutOfProcessWebView::take_element_screenshot(i32 element_id)
{
return client().take_element_screenshot(element_id);
}
Messages::WebContentServer::WebdriverExecuteScriptResponse OutOfProcessWebView::webdriver_execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async)
{
return client().webdriver_execute_script(body, json_arguments, timeout, async);