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 { |
472 "name": "getAppManifest", | 481 "name": "getAppManifest", |
473 "experimental": true, | 482 "experimental": true, |
474 "returns": [ | 483 "returns": [ |
475 { "name": "url", "type": "string", "description": "Manifest
location." }, | 484 { "name": "url", "type": "string", "description": "Manifest
location." }, |
476 { "name": "errors", "type": "array", "items": { "$ref": "App
ManifestError" } }, | 485 { "name": "errors", "type": "array", "items": { "$ref": "App
ManifestError" } }, |
477 { "name": "data", "type": "string", "optional": true, "descr
iption": "Manifest content." } | 486 { "name": "data", "type": "string", "optional": true, "descr
iption": "Manifest content." } |
478 ] | 487 ] |
479 }, | 488 }, |
480 { | 489 { |
481 "name": "requestAppBanner", | 490 "name": "requestAppBanner", |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 "parameters": [ | 638 "parameters": [ |
630 { "name": "isInMainFrame", "type": "boolean", "description":
"Whether the navigation is taking place in the main frame or in a subframe." }, | 639 { "name": "isInMainFrame", "type": "boolean", "description":
"Whether the navigation is taking place in the main frame or in a subframe." }, |
631 { "name": "isRedirect", "type": "boolean", "description": "W
hether the navigation has encountered a server redirect or not." }, | 640 { "name": "isRedirect", "type": "boolean", "description": "W
hether the navigation has encountered a server redirect or not." }, |
632 { "name": "navigationId", "type": "integer" }, | 641 { "name": "navigationId", "type": "integer" }, |
633 { "name": "url", "type": "string", "description": "URL of re
quested navigation." } | 642 { "name": "url", "type": "string", "description": "URL of re
quested navigation." } |
634 ] | 643 ] |
635 } | 644 } |
636 ] | 645 ] |
637 }, | 646 }, |
638 { | 647 { |
639 "domain": "Overlay", | 648 "domain": "Rendering", |
640 "description": "This domain provides various functionality related to dr
awing atop the inspected page.", | 649 "description": "This domain allows to control rendering of the page.", |
641 "dependencies": ["DOM", "Page", "Runtime"], | |
642 "experimental": true, | 650 "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 ], | |
673 "commands": [ | 651 "commands": [ |
674 { | 652 { |
675 "name": "enable", | |
676 "description": "Enables domain notifications." | |
677 }, | |
678 { | |
679 "name": "disable", | |
680 "description": "Disables domain notifications." | |
681 }, | |
682 { | |
683 "name": "setShowPaintRects", | 653 "name": "setShowPaintRects", |
684 "description": "Requests that backend shows paint rectangles", | 654 "description": "Requests that backend shows paint rectangles", |
685 "parameters": [ | 655 "parameters": [ |
686 { "name": "result", "type": "boolean", "description": "True
for showing paint rectangles" } | 656 { "name": "result", "type": "boolean", "description": "True
for showing paint rectangles" } |
687 ] | 657 ] |
688 }, | 658 }, |
689 { | 659 { |
690 "name": "setShowDebugBorders", | 660 "name": "setShowDebugBorders", |
691 "description": "Requests that backend shows debug borders on lay
ers", | 661 "description": "Requests that backend shows debug borders on lay
ers", |
692 "parameters": [ | 662 "parameters": [ |
(...skipping 13 matching lines...) Expand all Loading... |
706 "parameters": [ | 676 "parameters": [ |
707 { "name": "show", "type": "boolean", "description": "True fo
r showing scroll bottleneck rects" } | 677 { "name": "show", "type": "boolean", "description": "True fo
r showing scroll bottleneck rects" } |
708 ] | 678 ] |
709 }, | 679 }, |
710 { | 680 { |
711 "name": "setShowViewportSizeOnResize", | 681 "name": "setShowViewportSizeOnResize", |
712 "description": "Paints viewport size upon main frame resize.", | 682 "description": "Paints viewport size upon main frame resize.", |
713 "parameters": [ | 683 "parameters": [ |
714 { "name": "show", "type": "boolean", "description": "Whether
to paint size or not." } | 684 { "name": "show", "type": "boolean", "description": "Whether
to paint size or not." } |
715 ] | 685 ] |
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 ] | |
806 } | 686 } |
807 ] | 687 ] |
808 }, | 688 }, |
809 { | 689 { |
810 "domain": "Emulation", | 690 "domain": "Emulation", |
811 "description": "This domain emulates different environments for the page
.", | 691 "description": "This domain emulates different environments for the page
.", |
812 "dependencies": ["DOM"], | 692 "dependencies": ["DOM"], |
813 "types": [ | 693 "types": [ |
814 { | 694 { |
815 "id": "ScreenOrientation", | 695 "id": "ScreenOrientation", |
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2251 "id": "Rect", | 2131 "id": "Rect", |
2252 "type": "object", | 2132 "type": "object", |
2253 "experimental": true, | 2133 "experimental": true, |
2254 "properties": [ | 2134 "properties": [ |
2255 { "name": "x", "type": "number", "description": "X coordinat
e" }, | 2135 { "name": "x", "type": "number", "description": "X coordinat
e" }, |
2256 { "name": "y", "type": "number", "description": "Y coordinat
e" }, | 2136 { "name": "y", "type": "number", "description": "Y coordinat
e" }, |
2257 { "name": "width", "type": "number", "description": "Rectang
le width" }, | 2137 { "name": "width", "type": "number", "description": "Rectang
le width" }, |
2258 { "name": "height", "type": "number", "description": "Rectan
gle height" } | 2138 { "name": "height", "type": "number", "description": "Rectan
gle height" } |
2259 ], | 2139 ], |
2260 "description": "Rectangle." | 2140 "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 ] |
2261 } | 2170 } |
2262 ], | 2171 ], |
2263 "commands": [ | 2172 "commands": [ |
2264 { | 2173 { |
2265 "name": "enable", | 2174 "name": "enable", |
2266 "description": "Enables DOM agent for the given page." | 2175 "description": "Enables DOM agent for the given page." |
2267 }, | 2176 }, |
2268 { | 2177 { |
2269 "name": "disable", | 2178 "name": "disable", |
2270 "description": "Disables DOM agent for the given page." | 2179 "description": "Disables DOM agent for the given page." |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2441 "name": "requestNode", | 2350 "name": "requestNode", |
2442 "parameters": [ | 2351 "parameters": [ |
2443 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des
cription": "JavaScript object id to convert into node." } | 2352 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des
cription": "JavaScript object id to convert into node." } |
2444 ], | 2353 ], |
2445 "returns": [ | 2354 "returns": [ |
2446 { "name": "nodeId", "$ref": "NodeId", "description": "Node i
d for given object." } | 2355 { "name": "nodeId", "$ref": "NodeId", "description": "Node i
d for given object." } |
2447 ], | 2356 ], |
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." | 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." |
2449 }, | 2358 }, |
2450 { | 2359 { |
| 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 { |
2451 "name": "highlightRect", | 2369 "name": "highlightRect", |
2452 "description": "Highlights given rectangle.", | 2370 "parameters": [ |
2453 "redirect": "Overlay" | 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 |
2454 }, | 2389 }, |
2455 { | 2390 { |
2456 "name": "highlightNode", | 2391 "name": "highlightNode", |
2457 "description": "Highlights DOM node.", | 2392 "parameters": [ |
2458 "redirect": "Overlay" | 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." |
2459 }, | 2399 }, |
2460 { | 2400 { |
2461 "name": "hideHighlight", | 2401 "name": "hideHighlight", |
2462 "description": "Hides any highlight.", | 2402 "description": "Hides DOM node highlight." |
2463 "redirect": "Overlay" | 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 |
2464 }, | 2413 }, |
2465 { | 2414 { |
2466 "name": "pushNodeByPathToFrontend", | 2415 "name": "pushNodeByPathToFrontend", |
2467 "parameters": [ | 2416 "parameters": [ |
2468 { "name": "path", "type": "string", "description": "Path to
node in the proprietary format." } | 2417 { "name": "path", "type": "string", "description": "Path to
node in the proprietary format." } |
2469 ], | 2418 ], |
2470 "returns": [ | 2419 "returns": [ |
2471 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node for given path." } | 2420 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node for given path." } |
2472 ], | 2421 ], |
2473 "description": "Requests that the node is sent to the caller giv
en its path. // FIXME, use XPath", | 2422 "description": "Requests that the node is sent to the caller giv
en its path. // FIXME, use XPath", |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 { | 2546 { |
2598 "name": "getRelayoutBoundary", | 2547 "name": "getRelayoutBoundary", |
2599 "parameters": [ | 2548 "parameters": [ |
2600 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node." } | 2549 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node." } |
2601 ], | 2550 ], |
2602 "returns": [ | 2551 "returns": [ |
2603 { "name": "nodeId", "$ref": "NodeId", "description": "Relayo
ut boundary node id for the given node." } | 2552 { "name": "nodeId", "$ref": "NodeId", "description": "Relayo
ut boundary node id for the given node." } |
2604 ], | 2553 ], |
2605 "description": "Returns the id of the nearest ancestor that is a
relayout boundary.", | 2554 "description": "Returns the id of the nearest ancestor that is a
relayout boundary.", |
2606 "experimental": true | 2555 "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 |
2607 } | 2567 } |
2608 ], | 2568 ], |
2609 "events": [ | 2569 "events": [ |
2610 { | 2570 { |
2611 "name": "documentUpdated", | 2571 "name": "documentUpdated", |
2612 "description": "Fired when <code>Document</code> has been totall
y updated. Node ids are no longer valid." | 2572 "description": "Fired when <code>Document</code> has been totall
y updated. Node ids are no longer valid." |
2613 }, | 2573 }, |
2614 { | 2574 { |
| 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 { |
2615 "name": "setChildNodes", | 2583 "name": "setChildNodes", |
2616 "parameters": [ | 2584 "parameters": [ |
2617 { "name": "parentId", "$ref": "NodeId", "description": "Pare
nt node id to populate with children." }, | 2585 { "name": "parentId", "$ref": "NodeId", "description": "Pare
nt node id to populate with children." }, |
2618 { "name": "nodes", "type": "array", "items": { "$ref": "Node
" }, "description": "Child nodes array." } | 2586 { "name": "nodes", "type": "array", "items": { "$ref": "Node
" }, "description": "Child nodes array." } |
2619 ], | 2587 ], |
2620 "description": "Fired when backend wants to provide client with
the missing DOM structure. This happens upon most of the calls requesting node i
ds." | 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." |
2621 }, | 2589 }, |
2622 { | 2590 { |
2623 "name": "attributeModified", | 2591 "name": "attributeModified", |
2624 "parameters": [ | 2592 "parameters": [ |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2714 "experimental": true | 2682 "experimental": true |
2715 }, | 2683 }, |
2716 { | 2684 { |
2717 "name": "distributedNodesUpdated", | 2685 "name": "distributedNodesUpdated", |
2718 "parameters": [ | 2686 "parameters": [ |
2719 { "name": "insertionPointId", "$ref": "NodeId", "description
": "Insertion point where distrubuted nodes were updated." }, | 2687 { "name": "insertionPointId", "$ref": "NodeId", "description
": "Insertion point where distrubuted nodes were updated." }, |
2720 { "name": "distributedNodes", "type": "array", "items": { "$
ref": "BackendNode" }, "description": "Distributed nodes for given insertion poi
nt." } | 2688 { "name": "distributedNodes", "type": "array", "items": { "$
ref": "BackendNode" }, "description": "Distributed nodes for given insertion poi
nt." } |
2721 ], | 2689 ], |
2722 "description": "Called when distrubution is changed.", | 2690 "description": "Called when distrubution is changed.", |
2723 "experimental": true | 2691 "experimental": true |
| 2692 }, |
| 2693 { |
| 2694 "name": "nodeHighlightRequested", |
| 2695 "parameters": [ |
| 2696 {"name": "nodeId", "$ref": "NodeId"} |
| 2697 ], |
| 2698 "experimental": true |
2724 } | 2699 } |
2725 ] | 2700 ] |
2726 }, | 2701 }, |
2727 { | 2702 { |
2728 "domain": "CSS", | 2703 "domain": "CSS", |
2729 "experimental": true, | 2704 "experimental": true, |
2730 "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.", | 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.", |
2731 "dependencies": ["DOM"], | 2706 "dependencies": ["DOM"], |
2732 "types": [ | 2707 "types": [ |
2733 { | 2708 { |
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4649 "parameters": [ | 4624 "parameters": [ |
4650 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } | 4625 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } |
4651 ], | 4626 ], |
4652 "returns": [ | 4627 "returns": [ |
4653 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } | 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." } |
4654 ] | 4629 ] |
4655 } | 4630 } |
4656 ] | 4631 ] |
4657 }] | 4632 }] |
4658 } | 4633 } |
OLD | NEW |