mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:14:58 +00:00

It was a bit short-sighted to combine the tag and attribute names into one string when the Inspector requests a context menu. We will want both values for some context menu actions. Send both names, as well as the attribute value, when requesting the context menu.
17 lines
699 B
Text
17 lines
699 B
Text
#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 addDOMNodeAttributes(long nodeID, NamedNodeMap attributes);
|
|
undefined replaceDOMNodeAttribute(long nodeID, DOMString name, NamedNodeMap replacementAttributes);
|
|
|
|
undefined requestDOMTreeContextMenu(long nodeID, long clientX, long clientY, DOMString type, DOMString? tag, DOMString? attributeName, DOMString? attributeValue);
|
|
|
|
undefined executeConsoleScript(DOMString script);
|
|
|
|
};
|