summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-11-03 13:30:11 -0400
committerLinus Groh <mail@linusgroh.de>2022-11-03 19:15:43 +0000
commit683c99f299f011b334da43d2ed85676fb3dc403a (patch)
treee7c37b1c8f27d1b6be2fb2485c3d81605f0080e3 /Userland/Libraries
parent9564f04fa61789ebde1f3a2524e33d8aad11a333 (diff)
downloadserenity-683c99f299f011b334da43d2ed85676fb3dc403a.zip
LibWebView+WebConent: Add an IPC to get an element's enabled state
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.cpp5
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
index 151ba6f264..d7ccbaeac7 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
@@ -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);
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
index 6b8b90a14a..934c865f29 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
@@ -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);