summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebContentClient.h
diff options
context:
space:
mode:
authorAdam Hodgen <ant1441@gmail.com>2021-06-07 16:35:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-06-29 23:06:48 +0200
commitcd6b9613c506096fa2737f37a2af7e85a8b01461 (patch)
treed2d5eeafedf77da2e328d9f1e8e7cd209ce6f8e2 /Userland/Libraries/LibWeb/WebContentClient.h
parent4affe052b8e6a955e3c5ca06ea58accf985ae51e (diff)
downloadserenity-cd6b9613c506096fa2737f37a2af7e85a8b01461.zip
LibWeb+WebContent: Add IPC flow for Inspect DOM Tree
Add `inspect_dom_tree` to WebContentServer and 'did_get_dom_tree' to WebContentClient. These two async methods form a request & response for requesting a JSON representation of the Content's DOM tree.
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.h')
-rw-r--r--Userland/Libraries/LibWeb/WebContentClient.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.h b/Userland/Libraries/LibWeb/WebContentClient.h
index 15664fb819..60e89d1127 100644
--- a/Userland/Libraries/LibWeb/WebContentClient.h
+++ b/Userland/Libraries/LibWeb/WebContentClient.h
@@ -49,6 +49,7 @@ private:
virtual void did_request_link_context_menu(Gfx::IntPoint const&, URL const&, String const&, unsigned) override;
virtual void did_request_image_context_menu(Gfx::IntPoint const&, URL const&, String const&, unsigned, Gfx::ShareableBitmap const&) override;
virtual void did_get_source(URL const&, String const&) override;
+ virtual void did_get_dom_tree(String const&) override;
virtual void did_js_console_output(String const&, String const&) override;
virtual void did_change_favicon(Gfx::ShareableBitmap const&) override;
virtual void did_request_alert(String const&) override;