mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibWeb+LibWebView+WebContent: Add Inspector IPCs to manipulate DOM nodes
This adds the IDL methods and IPC to forward DOM-editing events from the Inspector WebView to the Inspector client.
This commit is contained in:
parent
4cfeb41c4b
commit
1236cbd41a
Notes:
sideshowbarker
2024-07-17 03:27:40 +09:00
Author: https://github.com/trflynn89
Commit: 1236cbd41a
Pull-request: https://github.com/SerenityOS/serenity/pull/22150
Reviewed-by: https://github.com/awesomekling ✅
10 changed files with 91 additions and 0 deletions
|
@ -21,6 +21,10 @@ public:
|
|||
void inspector_loaded();
|
||||
void inspect_dom_node(i32 node_id, Optional<i32> const& pseudo_element);
|
||||
|
||||
void set_dom_node_text(i32 node_id, String const& text);
|
||||
void set_dom_node_tag(i32 node_id, String const& tag);
|
||||
void replace_dom_node_attribute(i32 node_id, String const& name, JS::NonnullGCPtr<DOM::NamedNodeMap> replacement_attributes);
|
||||
|
||||
void execute_console_script(String const& script);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue