mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
Browser+WebContent+WebDriver: Move Take Element Screenshot to WebContent
This commit is contained in:
parent
de1e882601
commit
ea0561a0b3
15 changed files with 51 additions and 185 deletions
|
@ -554,11 +554,6 @@ OrderedHashMap<String, String> OutOfProcessWebView::get_session_storage_entries(
|
|||
return client().get_session_storage_entries();
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::scroll_element_into_view(i32 element_id)
|
||||
{
|
||||
return client().scroll_element_into_view(element_id);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
|
||||
{
|
||||
client().async_set_content_filters(filters);
|
||||
|
@ -596,11 +591,6 @@ Gfx::ShareableBitmap OutOfProcessWebView::take_screenshot() const
|
|||
return {};
|
||||
}
|
||||
|
||||
Gfx::ShareableBitmap OutOfProcessWebView::take_element_screenshot(i32 element_id)
|
||||
{
|
||||
return client().take_element_screenshot(element_id);
|
||||
}
|
||||
|
||||
Gfx::ShareableBitmap OutOfProcessWebView::take_document_screenshot()
|
||||
{
|
||||
return client().take_document_screenshot();
|
||||
|
|
|
@ -63,8 +63,6 @@ public:
|
|||
OrderedHashMap<String, String> get_local_storage_entries();
|
||||
OrderedHashMap<String, String> get_session_storage_entries();
|
||||
|
||||
void scroll_element_into_view(i32 element_id);
|
||||
|
||||
void set_content_filters(Vector<String>);
|
||||
void set_proxy_mappings(Vector<String> proxies, HashMap<String, size_t> mappings);
|
||||
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);
|
||||
|
@ -76,7 +74,6 @@ public:
|
|||
void set_system_visibility_state(bool visible);
|
||||
|
||||
Gfx::ShareableBitmap take_screenshot() const;
|
||||
Gfx::ShareableBitmap take_element_screenshot(i32 element_id);
|
||||
Gfx::ShareableBitmap take_document_screenshot();
|
||||
|
||||
Messages::WebContentServer::WebdriverExecuteScriptResponse webdriver_execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue