feat(dev-tools): higlight overlay

This commit is contained in:
vakrilov
2019-11-05 13:18:09 +02:00
parent cf32428f52
commit 6b467871d1
12 changed files with 325 additions and 16 deletions

View File

@ -1,5 +1,8 @@
import { InspectorEvents, InspectorCommands } from "./devtools-elements";
import { getDocument, getComputedStylesForNode, removeNode, setAttributeAsText } from "./devtools-elements.common";
import {
getDocument, getComputedStylesForNode, removeNode,
setAttributeAsText, highlightNode, hideHighlight, setInspectMode
} from "./devtools-elements.common";
import { registerInspectorEvents, DOMNode } from "./dom-node";
export function attachDOMInspectorEventCallbacks(DOMDomainFrontend: InspectorEvents) {
@ -16,6 +19,10 @@ export function attachDOMInspectorCommandCallbacks(DOMDomainBackend: InspectorCo
DOMDomainBackend.getDocument = getDocument;
DOMDomainBackend.removeNode = removeNode;
DOMDomainBackend.setAttributeAsText = setAttributeAsText;
DOMDomainBackend.highlightNode = highlightNode;
DOMDomainBackend.hideHighlight = hideHighlight;
DOMDomainBackend.setInspectMode = setInspectMode;
}
export function attachCSSInspectorCommandCallbacks(CSSDomainBackend: InspectorCommands) {