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

LibWebView+WebConent: Add an IPC to get an element's enabled state

This commit is contained in:
Timothy Flynn 2022-11-03 13:30:11 -04:00 committed by Linus Groh
parent 9564f04fa6
commit 683c99f299
5 changed files with 31 additions and 0 deletions

View file

@ -565,6 +565,11 @@ Gfx::IntRect OutOfProcessWebView::get_element_rect(i32 element_id)
return client().get_element_rect(element_id);
}
bool OutOfProcessWebView::is_element_enabled(i32 element_id)
{
return client().is_element_enabled(element_id);
}
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
{
client().async_set_content_filters(filters);

View file

@ -72,6 +72,7 @@ public:
String get_element_text(i32 element_id);
String get_element_tag_name(i32 element_id);
Gfx::IntRect get_element_rect(i32 element_id);
bool is_element_enabled(i32 element_id);
void set_content_filters(Vector<String>);
void set_proxy_mappings(Vector<String> proxies, HashMap<String, size_t> mappings);