1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:07:34 +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:
Timothy Flynn 2023-12-03 11:49:08 -05:00 committed by Andreas Kling
parent 4cfeb41c4b
commit 1236cbd41a
10 changed files with 91 additions and 0 deletions

View file

@ -1,8 +1,14 @@
#import <DOM/NamedNodeMap.idl>
[Exposed=Nobody] interface Inspector {
undefined inspectorLoaded();
undefined inspectDOMNode(long nodeID, optional long pseudoElement);
undefined setDOMNodeText(long nodeID, DOMString text);
undefined setDOMNodeTag(long nodeID, DOMString tag);
undefined replaceDOMNodeAttribute(long nodeID, DOMString name, NamedNodeMap replacementAttributes);
undefined executeConsoleScript(DOMString script);
};