summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorTobias Christiansen <tobyase@serenityos.org>2022-10-20 22:39:41 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-22 13:44:49 +0200
commitbe6bbdaa3b73e0517b206f7e3583f7bb03650839 (patch)
tree9f0368506100c62a161d75a2060925c5c34c3419 /Userland/Libraries
parentf1f6c4c0b6202b0ea8c2b05b04d69077ce3f7f83 (diff)
downloadserenity-be6bbdaa3b73e0517b206f7e3583f7bb03650839.zip
WebContent+Friends: Add get_element_tag_name IPC and plumbing
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 a50d6fabcc..dd745842cd 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
@@ -545,6 +545,11 @@ String OutOfProcessWebView::get_computed_value_for_element(i32 element_id, Strin
return client().get_computed_value_for_element(element_id, property_name);
}
+String OutOfProcessWebView::get_element_tag_name(i32 element_id)
+{
+ return client().get_element_tag_name(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 a684433cb6..617f1bf1b4 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
@@ -64,6 +64,7 @@ public:
Optional<String> get_element_property(i32 element_id, String const& name);
String get_active_documents_type();
String get_computed_value_for_element(i32 element_id, String const& property_name);
+ String get_element_tag_name(i32 element_id);
void set_content_filters(Vector<String>);
void set_proxy_mappings(Vector<String> proxies, HashMap<String, size_t> mappings);