OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "experimental": true, | 5 "experimental": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 }, | 462 }, |
463 { | 463 { |
464 "name": "handleJavaScriptDialog", | 464 "name": "handleJavaScriptDialog", |
465 "description": "Accepts or dismisses a JavaScript initiated dial
og (alert, confirm, prompt, or onbeforeunload).", | 465 "description": "Accepts or dismisses a JavaScript initiated dial
og (alert, confirm, prompt, or onbeforeunload).", |
466 "parameters": [ | 466 "parameters": [ |
467 { "name": "accept", "type": "boolean", "description": "Wheth
er to accept or dismiss the dialog." }, | 467 { "name": "accept", "type": "boolean", "description": "Wheth
er to accept or dismiss the dialog." }, |
468 { "name": "promptText", "type": "string", "optional": true,
"description": "The text to enter into the dialog prompt before accepting. Used
only if this is a prompt dialog." } | 468 { "name": "promptText", "type": "string", "optional": true,
"description": "The text to enter into the dialog prompt before accepting. Used
only if this is a prompt dialog." } |
469 ] | 469 ] |
470 }, | 470 }, |
471 { | 471 { |
472 "name": "configureOverlay", | |
473 "parameters": [ | |
474 { "name": "suspended", "type": "boolean", "optional": true,
"description": "Whether overlay should be suspended and not consume any resource
s." }, | |
475 { "name": "message", "type": "string", "optional": true, "de
scription": "Overlay message to display." } | |
476 ], | |
477 "experimental": true, | |
478 "description": "Configures overlay." | |
479 }, | |
480 { | |
481 "name": "getAppManifest", | 472 "name": "getAppManifest", |
482 "experimental": true, | 473 "experimental": true, |
483 "returns": [ | 474 "returns": [ |
484 { "name": "url", "type": "string", "description": "Manifest
location." }, | 475 { "name": "url", "type": "string", "description": "Manifest
location." }, |
485 { "name": "errors", "type": "array", "items": { "$ref": "App
ManifestError" } }, | 476 { "name": "errors", "type": "array", "items": { "$ref": "App
ManifestError" } }, |
486 { "name": "data", "type": "string", "optional": true, "descr
iption": "Manifest content." } | 477 { "name": "data", "type": "string", "optional": true, "descr
iption": "Manifest content." } |
487 ] | 478 ] |
488 }, | 479 }, |
489 { | 480 { |
490 "name": "requestAppBanner", | 481 "name": "requestAppBanner", |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 "parameters": [ | 629 "parameters": [ |
639 { "name": "isInMainFrame", "type": "boolean", "description":
"Whether the navigation is taking place in the main frame or in a subframe." }, | 630 { "name": "isInMainFrame", "type": "boolean", "description":
"Whether the navigation is taking place in the main frame or in a subframe." }, |
640 { "name": "isRedirect", "type": "boolean", "description": "W
hether the navigation has encountered a server redirect or not." }, | 631 { "name": "isRedirect", "type": "boolean", "description": "W
hether the navigation has encountered a server redirect or not." }, |
641 { "name": "navigationId", "type": "integer" }, | 632 { "name": "navigationId", "type": "integer" }, |
642 { "name": "url", "type": "string", "description": "URL of re
quested navigation." } | 633 { "name": "url", "type": "string", "description": "URL of re
quested navigation." } |
643 ] | 634 ] |
644 } | 635 } |
645 ] | 636 ] |
646 }, | 637 }, |
647 { | 638 { |
648 "domain": "Rendering", | 639 "domain": "Overlay", |
649 "description": "This domain allows to control rendering of the page.", | 640 "description": "This domain provides various functionality related to dr
awing atop the inspected page.", |
| 641 "dependencies": ["DOM", "Page", "Runtime"], |
650 "experimental": true, | 642 "experimental": true, |
| 643 "types": [ |
| 644 { |
| 645 "id": "HighlightConfig", |
| 646 "type": "object", |
| 647 "properties": [ |
| 648 { "name": "showInfo", "type": "boolean", "optional": true, "
description": "Whether the node info tooltip should be shown (default: false)."
}, |
| 649 { "name": "showRulers", "type": "boolean", "optional": true,
"description": "Whether the rulers should be shown (default: false)." }, |
| 650 { "name": "showExtensionLines", "type": "boolean", "optional
": true, "description": "Whether the extension lines from node to the rulers sho
uld be shown (default: false)." }, |
| 651 { "name": "displayAsMaterial", "type": "boolean", "optional"
: true}, |
| 652 { "name": "contentColor", "$ref": "DOM.RGBA", "optional": tr
ue, "description": "The content box highlight fill color (default: transparent).
" }, |
| 653 { "name": "paddingColor", "$ref": "DOM.RGBA", "optional": tr
ue, "description": "The padding highlight fill color (default: transparent)." }, |
| 654 { "name": "borderColor", "$ref": "DOM.RGBA", "optional": tru
e, "description": "The border highlight fill color (default: transparent)." }, |
| 655 { "name": "marginColor", "$ref": "DOM.RGBA", "optional": tru
e, "description": "The margin highlight fill color (default: transparent)." }, |
| 656 { "name": "eventTargetColor", "$ref": "DOM.RGBA", "optional"
: true, "description": "The event target element highlight fill color (default:
transparent)." }, |
| 657 { "name": "shapeColor", "$ref": "DOM.RGBA", "optional": true
, "description": "The shape outside fill color (default: transparent)." }, |
| 658 { "name": "shapeMarginColor", "$ref": "DOM.RGBA", "optional"
: true, "description": "The shape margin fill color (default: transparent)." }, |
| 659 { "name": "selectorList", "type": "string", "optional": true
, "description": "Selectors to highlight relevant nodes."} |
| 660 ], |
| 661 "description": "Configuration data for the highlighting of page
elements." |
| 662 }, |
| 663 { |
| 664 "id": "InspectMode", |
| 665 "type": "string", |
| 666 "enum": [ |
| 667 "searchForNode", |
| 668 "searchForUAShadowDOM", |
| 669 "none" |
| 670 ] |
| 671 } |
| 672 ], |
651 "commands": [ | 673 "commands": [ |
652 { | 674 { |
| 675 "name": "enable", |
| 676 "description": "Enables domain notifications." |
| 677 }, |
| 678 { |
| 679 "name": "disable", |
| 680 "description": "Disables domain notifications." |
| 681 }, |
| 682 { |
653 "name": "setShowPaintRects", | 683 "name": "setShowPaintRects", |
654 "description": "Requests that backend shows paint rectangles", | 684 "description": "Requests that backend shows paint rectangles", |
655 "parameters": [ | 685 "parameters": [ |
656 { "name": "result", "type": "boolean", "description": "True
for showing paint rectangles" } | 686 { "name": "result", "type": "boolean", "description": "True
for showing paint rectangles" } |
657 ] | 687 ] |
658 }, | 688 }, |
659 { | 689 { |
660 "name": "setShowDebugBorders", | 690 "name": "setShowDebugBorders", |
661 "description": "Requests that backend shows debug borders on lay
ers", | 691 "description": "Requests that backend shows debug borders on lay
ers", |
662 "parameters": [ | 692 "parameters": [ |
(...skipping 13 matching lines...) Expand all Loading... |
676 "parameters": [ | 706 "parameters": [ |
677 { "name": "show", "type": "boolean", "description": "True fo
r showing scroll bottleneck rects" } | 707 { "name": "show", "type": "boolean", "description": "True fo
r showing scroll bottleneck rects" } |
678 ] | 708 ] |
679 }, | 709 }, |
680 { | 710 { |
681 "name": "setShowViewportSizeOnResize", | 711 "name": "setShowViewportSizeOnResize", |
682 "description": "Paints viewport size upon main frame resize.", | 712 "description": "Paints viewport size upon main frame resize.", |
683 "parameters": [ | 713 "parameters": [ |
684 { "name": "show", "type": "boolean", "description": "Whether
to paint size or not." } | 714 { "name": "show", "type": "boolean", "description": "Whether
to paint size or not." } |
685 ] | 715 ] |
| 716 }, |
| 717 { |
| 718 "name": "setPausedInDebuggerMessage", |
| 719 "parameters": [ |
| 720 { "name": "message", "type": "string", "optional": true, "de
scription": "The message to display, also triggers resume and step over controls
." } |
| 721 ] |
| 722 }, |
| 723 { |
| 724 "name": "setSuspended", |
| 725 "parameters": [ |
| 726 { "name": "suspended", "type": "boolean", "description": "Wh
ether overlay should be suspended and not consume any resources until resumed."
} |
| 727 ] |
| 728 }, |
| 729 { |
| 730 "name": "setInspectMode", |
| 731 "description": "Enters the 'inspect' mode. In this mode, element
s that user is hovering over are highlighted. Backend then generates 'inspectNod
eRequested' event upon element selection.", |
| 732 "parameters": [ |
| 733 { "name": "mode", "$ref": "InspectMode", "description": "Set
an inspection mode." }, |
| 734 { "name": "highlightConfig", "$ref": "HighlightConfig", "opt
ional": true, "description": "A descriptor for the highlight appearance of hover
ed-over nodes. May be omitted if <code>enabled == false</code>." } |
| 735 ] |
| 736 }, |
| 737 { |
| 738 "name": "highlightRect", |
| 739 "description": "Highlights given rectangle. Coordinates are abso
lute with respect to the main frame viewport.", |
| 740 "parameters": [ |
| 741 { "name": "x", "type": "integer", "description": "X coordina
te" }, |
| 742 { "name": "y", "type": "integer", "description": "Y coordina
te" }, |
| 743 { "name": "width", "type": "integer", "description": "Rectan
gle width" }, |
| 744 { "name": "height", "type": "integer", "description": "Recta
ngle height" }, |
| 745 { "name": "color", "$ref": "DOM.RGBA", "optional": true, "de
scription": "The highlight fill color (default: transparent)." }, |
| 746 { "name": "outlineColor", "$ref": "DOM.RGBA", "optional": tr
ue, "description": "The highlight outline color (default: transparent)." } |
| 747 ] |
| 748 }, |
| 749 { |
| 750 "name": "highlightQuad", |
| 751 "description": "Highlights given quad. Coordinates are absolute
with respect to the main frame viewport.", |
| 752 "parameters": [ |
| 753 { "name": "quad", "$ref": "DOM.Quad", "description": "Quad t
o highlight" }, |
| 754 { "name": "color", "$ref": "DOM.RGBA", "optional": true, "de
scription": "The highlight fill color (default: transparent)." }, |
| 755 { "name": "outlineColor", "$ref": "DOM.RGBA", "optional": tr
ue, "description": "The highlight outline color (default: transparent)." } |
| 756 ] |
| 757 }, |
| 758 { |
| 759 "name": "highlightNode", |
| 760 "description": "Highlights DOM node with given id or with the gi
ven JavaScript object wrapper. Either nodeId or objectId must be specified.", |
| 761 "parameters": [ |
| 762 { "name": "highlightConfig", "$ref": "HighlightConfig", "de
scription": "A descriptor for the highlight appearance." }, |
| 763 { "name": "nodeId", "$ref": "DOM.NodeId", "optional": true,
"description": "Identifier of the node to highlight." }, |
| 764 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "opt
ional": true, "description": "Identifier of the backend node to highlight." }, |
| 765 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "opt
ional": true, "description": "JavaScript object id of the node to be highlighted
." } |
| 766 ] |
| 767 }, |
| 768 { |
| 769 "name": "highlightFrame", |
| 770 "description": "Highlights owner element of the frame with given
id.", |
| 771 "parameters": [ |
| 772 { "name": "frameId", "$ref": "Page.FrameId", "description":
"Identifier of the frame to highlight." }, |
| 773 { "name": "contentColor", "$ref": "DOM.RGBA", "optional": tr
ue, "description": "The content box highlight fill color (default: transparent).
" }, |
| 774 { "name": "contentOutlineColor", "$ref": "DOM.RGBA", "option
al": true, "description": "The content box highlight outline color (default: tra
nsparent)." } |
| 775 ] |
| 776 }, |
| 777 { |
| 778 "name": "hideHighlight", |
| 779 "description": "Hides any highlight." |
| 780 }, |
| 781 { |
| 782 "name": "getHighlightObjectForTest", |
| 783 "description": "For testing.", |
| 784 "parameters": [ |
| 785 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id
of the node to get highlight object for." } |
| 786 ], |
| 787 "returns": [ |
| 788 { "name": "highlight", "type": "object", "description": "Hig
hlight data for the node." } |
| 789 ] |
| 790 } |
| 791 ], |
| 792 "events": [ |
| 793 { |
| 794 "name": "nodeHighlightRequested", |
| 795 "description": "Fired when the node should be highlighted. This
happens after call to <code>setInspectMode</code>.", |
| 796 "parameters": [ |
| 797 { "name": "nodeId", "$ref": "DOM.NodeId" } |
| 798 ] |
| 799 }, |
| 800 { |
| 801 "name": "inspectNodeRequested", |
| 802 "description": "Fired when the node should be inspected. This ha
ppens after call to <code>setInspectMode</code> or when user manually inspects a
n element.", |
| 803 "parameters": [ |
| 804 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "des
cription": "Id of the node to inspect." } |
| 805 ] |
686 } | 806 } |
687 ] | 807 ] |
688 }, | 808 }, |
689 { | 809 { |
690 "domain": "Emulation", | 810 "domain": "Emulation", |
691 "description": "This domain emulates different environments for the page
.", | 811 "description": "This domain emulates different environments for the page
.", |
692 "dependencies": ["DOM"], | 812 "dependencies": ["DOM"], |
693 "types": [ | 813 "types": [ |
694 { | 814 { |
695 "id": "ScreenOrientation", | 815 "id": "ScreenOrientation", |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2086 "type": "object", | 2206 "type": "object", |
2087 "properties": [ | 2207 "properties": [ |
2088 { "name": "r", "type": "integer", "description": "The red co
mponent, in the [0-255] range." }, | 2208 { "name": "r", "type": "integer", "description": "The red co
mponent, in the [0-255] range." }, |
2089 { "name": "g", "type": "integer", "description": "The green
component, in the [0-255] range." }, | 2209 { "name": "g", "type": "integer", "description": "The green
component, in the [0-255] range." }, |
2090 { "name": "b", "type": "integer", "description": "The blue c
omponent, in the [0-255] range." }, | 2210 { "name": "b", "type": "integer", "description": "The blue c
omponent, in the [0-255] range." }, |
2091 { "name": "a", "type": "number", "optional": true, "descript
ion": "The alpha component, in the [0-1] range (default: 1)." } | 2211 { "name": "a", "type": "number", "optional": true, "descript
ion": "The alpha component, in the [0-1] range (default: 1)." } |
2092 ], | 2212 ], |
2093 "description": "A structure holding an RGBA color." | 2213 "description": "A structure holding an RGBA color." |
2094 }, | 2214 }, |
2095 { | 2215 { |
2096 "id": "Quad", | |
2097 "type": "array", | |
2098 "items": { "type": "number" }, | |
2099 "minItems": 8, | |
2100 "maxItems": 8, | |
2101 "description": "An array of quad vertices, x immediately followe
d by y for each point, points clock-wise.", | |
2102 "experimental": true | |
2103 }, | |
2104 { | |
2105 "id": "BoxModel", | 2216 "id": "BoxModel", |
2106 "type": "object", | 2217 "type": "object", |
2107 "experimental": true, | 2218 "experimental": true, |
2108 "properties": [ | 2219 "properties": [ |
2109 { "name": "content", "$ref": "Quad", "description": "Content
box" }, | 2220 { "name": "content", "$ref": "Quad", "description": "Content
box" }, |
2110 { "name": "padding", "$ref": "Quad", "description": "Padding
box" }, | 2221 { "name": "padding", "$ref": "Quad", "description": "Padding
box" }, |
2111 { "name": "border", "$ref": "Quad", "description": "Border b
ox" }, | 2222 { "name": "border", "$ref": "Quad", "description": "Border b
ox" }, |
2112 { "name": "margin", "$ref": "Quad", "description": "Margin b
ox" }, | 2223 { "name": "margin", "$ref": "Quad", "description": "Margin b
ox" }, |
2113 { "name": "width", "type": "integer", "description": "Node w
idth" }, | 2224 { "name": "width", "type": "integer", "description": "Node w
idth" }, |
2114 { "name": "height", "type": "integer", "description": "Node
height" }, | 2225 { "name": "height", "type": "integer", "description": "Node
height" }, |
2115 { "name": "shapeOutside", "$ref": "ShapeOutsideInfo", "optio
nal": true, "description": "Shape outside coordinates" } | 2226 { "name": "shapeOutside", "$ref": "ShapeOutsideInfo", "optio
nal": true, "description": "Shape outside coordinates" } |
2116 ], | 2227 ], |
2117 "description": "Box model." | 2228 "description": "Box model." |
2118 }, | 2229 }, |
2119 { | 2230 { |
2120 "id": "ShapeOutsideInfo", | 2231 "id": "ShapeOutsideInfo", |
2121 "type": "object", | 2232 "type": "object", |
2122 "experimental": true, | 2233 "experimental": true, |
2123 "properties": [ | 2234 "properties": [ |
2124 { "name": "bounds", "$ref": "Quad", "description": "Shape bo
unds" }, | 2235 { "name": "bounds", "$ref": "Quad", "description": "Shape bo
unds" }, |
2125 { "name": "shape", "type": "array", "items": { "type": "any"
}, "description": "Shape coordinate details" }, | 2236 { "name": "shape", "type": "array", "items": { "type": "any"
}, "description": "Shape coordinate details" }, |
2126 { "name": "marginShape", "type": "array", "items": { "type":
"any"}, "description": "Margin shape bounds" } | 2237 { "name": "marginShape", "type": "array", "items": { "type":
"any"}, "description": "Margin shape bounds" } |
2127 ], | 2238 ], |
2128 "description": "CSS Shape Outside details." | 2239 "description": "CSS Shape Outside details." |
2129 }, | 2240 }, |
2130 { | 2241 { |
| 2242 "id": "Quad", |
| 2243 "type": "array", |
| 2244 "items": { "type": "number" }, |
| 2245 "minItems": 8, |
| 2246 "maxItems": 8, |
| 2247 "description": "An array of quad vertices, x immediately followe
d by y for each point, points clock-wise.", |
| 2248 "experimental": true |
| 2249 }, |
| 2250 { |
2131 "id": "Rect", | 2251 "id": "Rect", |
2132 "type": "object", | 2252 "type": "object", |
2133 "experimental": true, | 2253 "experimental": true, |
2134 "properties": [ | 2254 "properties": [ |
2135 { "name": "x", "type": "number", "description": "X coordinat
e" }, | 2255 { "name": "x", "type": "number", "description": "X coordinat
e" }, |
2136 { "name": "y", "type": "number", "description": "Y coordinat
e" }, | 2256 { "name": "y", "type": "number", "description": "Y coordinat
e" }, |
2137 { "name": "width", "type": "number", "description": "Rectang
le width" }, | 2257 { "name": "width", "type": "number", "description": "Rectang
le width" }, |
2138 { "name": "height", "type": "number", "description": "Rectan
gle height" } | 2258 { "name": "height", "type": "number", "description": "Rectan
gle height" } |
2139 ], | 2259 ], |
2140 "description": "Rectangle." | 2260 "description": "Rectangle." |
2141 }, | |
2142 { | |
2143 "id": "HighlightConfig", | |
2144 "type": "object", | |
2145 "properties": [ | |
2146 { "name": "showInfo", "type": "boolean", "optional": true, "
description": "Whether the node info tooltip should be shown (default: false)."
}, | |
2147 { "name": "showRulers", "type": "boolean", "optional": true,
"description": "Whether the rulers should be shown (default: false)." }, | |
2148 { "name": "showExtensionLines", "type": "boolean", "optional
": true, "description": "Whether the extension lines from node to the rulers sho
uld be shown (default: false)." }, | |
2149 { "name": "displayAsMaterial", "type": "boolean", "optional"
: true, "experimental": true}, | |
2150 { "name": "contentColor", "$ref": "RGBA", "optional": true,
"description": "The content box highlight fill color (default: transparent)." }, | |
2151 { "name": "paddingColor", "$ref": "RGBA", "optional": true,
"description": "The padding highlight fill color (default: transparent)." }, | |
2152 { "name": "borderColor", "$ref": "RGBA", "optional": true, "
description": "The border highlight fill color (default: transparent)." }, | |
2153 { "name": "marginColor", "$ref": "RGBA", "optional": true, "
description": "The margin highlight fill color (default: transparent)." }, | |
2154 { "name": "eventTargetColor", "$ref": "RGBA", "optional": tr
ue, "experimental": true, "description": "The event target element highlight fil
l color (default: transparent)." }, | |
2155 { "name": "shapeColor", "$ref": "RGBA", "optional": true, "e
xperimental": true, "description": "The shape outside fill color (default: trans
parent)." }, | |
2156 { "name": "shapeMarginColor", "$ref": "RGBA", "optional": tr
ue, "experimental": true, "description": "The shape margin fill color (default:
transparent)." }, | |
2157 { "name": "selectorList", "type": "string", "optional": true
, "description": "Selectors to highlight relevant nodes."} | |
2158 ], | |
2159 "description": "Configuration data for the highlighting of page
elements." | |
2160 }, | |
2161 { | |
2162 "id": "InspectMode", | |
2163 "type": "string", | |
2164 "experimental": true, | |
2165 "enum": [ | |
2166 "searchForNode", | |
2167 "searchForUAShadowDOM", | |
2168 "none" | |
2169 ] | |
2170 } | 2261 } |
2171 ], | 2262 ], |
2172 "commands": [ | 2263 "commands": [ |
2173 { | 2264 { |
2174 "name": "enable", | 2265 "name": "enable", |
2175 "description": "Enables DOM agent for the given page." | 2266 "description": "Enables DOM agent for the given page." |
2176 }, | 2267 }, |
2177 { | 2268 { |
2178 "name": "disable", | 2269 "name": "disable", |
2179 "description": "Disables DOM agent for the given page." | 2270 "description": "Disables DOM agent for the given page." |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2350 "name": "requestNode", | 2441 "name": "requestNode", |
2351 "parameters": [ | 2442 "parameters": [ |
2352 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des
cription": "JavaScript object id to convert into node." } | 2443 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des
cription": "JavaScript object id to convert into node." } |
2353 ], | 2444 ], |
2354 "returns": [ | 2445 "returns": [ |
2355 { "name": "nodeId", "$ref": "NodeId", "description": "Node i
d for given object." } | 2446 { "name": "nodeId", "$ref": "NodeId", "description": "Node i
d for given object." } |
2356 ], | 2447 ], |
2357 "description": "Requests that the node is sent to the caller giv
en the JavaScript node object reference. All nodes that form the path from the n
ode to the root are also sent to the client as a series of <code>setChildNodes</
code> notifications." | 2448 "description": "Requests that the node is sent to the caller giv
en the JavaScript node object reference. All nodes that form the path from the n
ode to the root are also sent to the client as a series of <code>setChildNodes</
code> notifications." |
2358 }, | 2449 }, |
2359 { | 2450 { |
2360 "name": "setInspectMode", | |
2361 "experimental": true, | |
2362 "parameters": [ | |
2363 { "name": "mode", "$ref": "InspectMode", "description": "Set
an inspection mode." }, | |
2364 { "name": "highlightConfig", "$ref": "HighlightConfig", "opt
ional": true, "description": "A descriptor for the highlight appearance of hover
ed-over nodes. May be omitted if <code>enabled == false</code>." } | |
2365 ], | |
2366 "description": "Enters the 'inspect' mode. In this mode, element
s that user is hovering over are highlighted. Backend then generates 'inspectNod
eRequested' event upon element selection." | |
2367 }, | |
2368 { | |
2369 "name": "highlightRect", | |
2370 "parameters": [ | |
2371 { "name": "x", "type": "integer", "description": "X coordina
te" }, | |
2372 { "name": "y", "type": "integer", "description": "Y coordina
te" }, | |
2373 { "name": "width", "type": "integer", "description": "Rectan
gle width" }, | |
2374 { "name": "height", "type": "integer", "description": "Recta
ngle height" }, | |
2375 { "name": "color", "$ref": "RGBA", "optional": true, "descri
ption": "The highlight fill color (default: transparent)." }, | |
2376 { "name": "outlineColor", "$ref": "RGBA", "optional": true,
"description": "The highlight outline color (default: transparent)." } | |
2377 ], | |
2378 "description": "Highlights given rectangle. Coordinates are abso
lute with respect to the main frame viewport." | |
2379 }, | |
2380 { | |
2381 "name": "highlightQuad", | |
2382 "parameters": [ | |
2383 { "name": "quad", "$ref": "Quad", "description": "Quad to hi
ghlight" }, | |
2384 { "name": "color", "$ref": "RGBA", "optional": true, "descri
ption": "The highlight fill color (default: transparent)." }, | |
2385 { "name": "outlineColor", "$ref": "RGBA", "optional": true,
"description": "The highlight outline color (default: transparent)." } | |
2386 ], | |
2387 "description": "Highlights given quad. Coordinates are absolute
with respect to the main frame viewport.", | |
2388 "experimental": true | |
2389 }, | |
2390 { | |
2391 "name": "highlightNode", | |
2392 "parameters": [ | |
2393 { "name": "highlightConfig", "$ref": "HighlightConfig", "de
scription": "A descriptor for the highlight appearance." }, | |
2394 { "name": "nodeId", "$ref": "NodeId", "optional": true, "des
cription": "Identifier of the node to highlight." }, | |
2395 { "name": "backendNodeId", "$ref": "BackendNodeId", "optiona
l": true, "description": "Identifier of the backend node to highlight." }, | |
2396 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "opt
ional": true, "description": "JavaScript object id of the node to be highlighted
.", "experimental": true } | |
2397 ], | |
2398 "description": "Highlights DOM node with given id or with the gi
ven JavaScript object wrapper. Either nodeId or objectId must be specified." | |
2399 }, | |
2400 { | |
2401 "name": "hideHighlight", | |
2402 "description": "Hides DOM node highlight." | |
2403 }, | |
2404 { | |
2405 "name": "highlightFrame", | |
2406 "parameters": [ | |
2407 { "name": "frameId", "$ref": "Page.FrameId", "description":
"Identifier of the frame to highlight." }, | |
2408 { "name": "contentColor", "$ref": "RGBA", "optional": true,
"description": "The content box highlight fill color (default: transparent)." }, | |
2409 { "name": "contentOutlineColor", "$ref": "RGBA", "optional":
true, "description": "The content box highlight outline color (default: transpa
rent)." } | |
2410 ], | |
2411 "description": "Highlights owner element of the frame with given
id.", | |
2412 "experimental": true | |
2413 }, | |
2414 { | |
2415 "name": "pushNodeByPathToFrontend", | 2451 "name": "pushNodeByPathToFrontend", |
2416 "parameters": [ | 2452 "parameters": [ |
2417 { "name": "path", "type": "string", "description": "Path to
node in the proprietary format." } | 2453 { "name": "path", "type": "string", "description": "Path to
node in the proprietary format." } |
2418 ], | 2454 ], |
2419 "returns": [ | 2455 "returns": [ |
2420 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node for given path." } | 2456 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node for given path." } |
2421 ], | 2457 ], |
2422 "description": "Requests that the node is sent to the caller giv
en its path. // FIXME, use XPath", | 2458 "description": "Requests that the node is sent to the caller giv
en its path. // FIXME, use XPath", |
2423 "experimental": true | 2459 "experimental": true |
2424 }, | 2460 }, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2546 { | 2582 { |
2547 "name": "getRelayoutBoundary", | 2583 "name": "getRelayoutBoundary", |
2548 "parameters": [ | 2584 "parameters": [ |
2549 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node." } | 2585 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node." } |
2550 ], | 2586 ], |
2551 "returns": [ | 2587 "returns": [ |
2552 { "name": "nodeId", "$ref": "NodeId", "description": "Relayo
ut boundary node id for the given node." } | 2588 { "name": "nodeId", "$ref": "NodeId", "description": "Relayo
ut boundary node id for the given node." } |
2553 ], | 2589 ], |
2554 "description": "Returns the id of the nearest ancestor that is a
relayout boundary.", | 2590 "description": "Returns the id of the nearest ancestor that is a
relayout boundary.", |
2555 "experimental": true | 2591 "experimental": true |
2556 }, | |
2557 { | |
2558 "name": "getHighlightObjectForTest", | |
2559 "parameters": [ | |
2560 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node to get highlight object for." } | |
2561 ], | |
2562 "returns": [ | |
2563 { "name": "highlight", "type": "object", "description": "Hig
hlight data for the node." } | |
2564 ], | |
2565 "description": "For testing.", | |
2566 "experimental": true | |
2567 } | 2592 } |
2568 ], | 2593 ], |
2569 "events": [ | 2594 "events": [ |
2570 { | 2595 { |
2571 "name": "documentUpdated", | 2596 "name": "documentUpdated", |
2572 "description": "Fired when <code>Document</code> has been totall
y updated. Node ids are no longer valid." | 2597 "description": "Fired when <code>Document</code> has been totall
y updated. Node ids are no longer valid." |
2573 }, | 2598 }, |
2574 { | 2599 { |
2575 "name": "inspectNodeRequested", | |
2576 "parameters": [ | |
2577 { "name": "backendNodeId", "$ref": "BackendNodeId", "descrip
tion": "Id of the node to inspect." } | |
2578 ], | |
2579 "description": "Fired when the node should be inspected. This ha
ppens after call to <code>setInspectMode</code>.", | |
2580 "experimental" : true | |
2581 }, | |
2582 { | |
2583 "name": "setChildNodes", | 2600 "name": "setChildNodes", |
2584 "parameters": [ | 2601 "parameters": [ |
2585 { "name": "parentId", "$ref": "NodeId", "description": "Pare
nt node id to populate with children." }, | 2602 { "name": "parentId", "$ref": "NodeId", "description": "Pare
nt node id to populate with children." }, |
2586 { "name": "nodes", "type": "array", "items": { "$ref": "Node
" }, "description": "Child nodes array." } | 2603 { "name": "nodes", "type": "array", "items": { "$ref": "Node
" }, "description": "Child nodes array." } |
2587 ], | 2604 ], |
2588 "description": "Fired when backend wants to provide client with
the missing DOM structure. This happens upon most of the calls requesting node i
ds." | 2605 "description": "Fired when backend wants to provide client with
the missing DOM structure. This happens upon most of the calls requesting node i
ds." |
2589 }, | 2606 }, |
2590 { | 2607 { |
2591 "name": "attributeModified", | 2608 "name": "attributeModified", |
2592 "parameters": [ | 2609 "parameters": [ |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2682 "experimental": true | 2699 "experimental": true |
2683 }, | 2700 }, |
2684 { | 2701 { |
2685 "name": "distributedNodesUpdated", | 2702 "name": "distributedNodesUpdated", |
2686 "parameters": [ | 2703 "parameters": [ |
2687 { "name": "insertionPointId", "$ref": "NodeId", "description
": "Insertion point where distrubuted nodes were updated." }, | 2704 { "name": "insertionPointId", "$ref": "NodeId", "description
": "Insertion point where distrubuted nodes were updated." }, |
2688 { "name": "distributedNodes", "type": "array", "items": { "$
ref": "BackendNode" }, "description": "Distributed nodes for given insertion poi
nt." } | 2705 { "name": "distributedNodes", "type": "array", "items": { "$
ref": "BackendNode" }, "description": "Distributed nodes for given insertion poi
nt." } |
2689 ], | 2706 ], |
2690 "description": "Called when distrubution is changed.", | 2707 "description": "Called when distrubution is changed.", |
2691 "experimental": true | 2708 "experimental": true |
2692 }, | |
2693 { | |
2694 "name": "nodeHighlightRequested", | |
2695 "parameters": [ | |
2696 {"name": "nodeId", "$ref": "NodeId"} | |
2697 ], | |
2698 "experimental": true | |
2699 } | 2709 } |
2700 ] | 2710 ] |
2701 }, | 2711 }, |
2702 { | 2712 { |
2703 "domain": "CSS", | 2713 "domain": "CSS", |
2704 "experimental": true, | 2714 "experimental": true, |
2705 "description": "This domain exposes CSS read/write operations. All CSS o
bjects (stylesheets, rules, and styles) have an associated <code>id</code> used
in subsequent operations on the related object. Each object type has a specific
<code>id</code> structure, and those are not interchangeable between objects of
different kinds. CSS objects can be loaded using the <code>get*ForNode()</code>
calls (which accept a DOM node id). A client can also discover all the existing
stylesheets with the <code>getAllStyleSheets()</code> method (or keeping track o
f the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and su
bsequently load the required stylesheet contents using the <code>getStyleSheet[T
ext]()</code> methods.", | 2715 "description": "This domain exposes CSS read/write operations. All CSS o
bjects (stylesheets, rules, and styles) have an associated <code>id</code> used
in subsequent operations on the related object. Each object type has a specific
<code>id</code> structure, and those are not interchangeable between objects of
different kinds. CSS objects can be loaded using the <code>get*ForNode()</code>
calls (which accept a DOM node id). A client can also discover all the existing
stylesheets with the <code>getAllStyleSheets()</code> method (or keeping track o
f the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and su
bsequently load the required stylesheet contents using the <code>getStyleSheet[T
ext]()</code> methods.", |
2706 "dependencies": ["DOM"], | 2716 "dependencies": ["DOM"], |
2707 "types": [ | 2717 "types": [ |
2708 { | 2718 { |
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4624 "parameters": [ | 4634 "parameters": [ |
4625 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } | 4635 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } |
4626 ], | 4636 ], |
4627 "returns": [ | 4637 "returns": [ |
4628 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } | 4638 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } |
4629 ] | 4639 ] |
4630 } | 4640 } |
4631 ] | 4641 ] |
4632 }] | 4642 }] |
4633 } | 4643 } |
OLD | NEW |