mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
LibWebView+WebContent: Add an IPC to take an element screenshot
This commit is contained in:
parent
424e80ee75
commit
3c1c2994f1
Notes:
sideshowbarker
2024-07-17 04:47:04 +09:00
Author: https://github.com/trflynn89
Commit: 3c1c2994f1
Pull-request: https://github.com/SerenityOS/serenity/pull/15927
Reviewed-by: https://github.com/linusg ✅
5 changed files with 25 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue