summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/OutOfProcessWebView.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-08 11:51:26 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-10 06:52:17 +0100
commit54bbb97ac647a258752ae210ea0180e1e5f89687 (patch)
treef6f4dbeb830b4d5128cd301cf487724df4aa23e9 /Userland/Libraries/LibWeb/OutOfProcessWebView.h
parent53df13fed7d645d01ea3412809908fbd4dfe5a8f (diff)
downloadserenity-54bbb97ac647a258752ae210ea0180e1e5f89687.zip
Browser+LibWeb+WebContent: Add variables display to Inspector
This allows us to see which custom properties apply to a given element, which previously wasn't shown.
Diffstat (limited to 'Userland/Libraries/LibWeb/OutOfProcessWebView.h')
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.h b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
index e788f37d14..1242ca0dc3 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
@@ -37,6 +37,7 @@ public:
struct DOMNodeProperties {
String specified_values_json;
String computed_values_json;
+ String custom_properties_json;
};
Optional<DOMNodeProperties> inspect_dom_node(i32 node_id);
void clear_inspected_dom_node();
@@ -80,7 +81,7 @@ public:
String notify_server_did_request_prompt(Badge<WebContentClient>, const String& message, const String& default_);
void notify_server_did_get_source(const AK::URL& url, const String& source);
void notify_server_did_get_dom_tree(const String& dom_tree);
- void notify_server_did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style);
+ void notify_server_did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style, String const& custom_properties);
void notify_server_did_output_js_console_message(i32 message_index);
void notify_server_did_get_js_console_messages(i32 start_index, Vector<String> const& message_types, Vector<String> const& messages);
void notify_server_did_change_favicon(const Gfx::Bitmap& favicon);