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 3314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3325 { | 3325 { |
3326 "name": "styleSheetRemoved", | 3326 "name": "styleSheetRemoved", |
3327 "parameters": [ | 3327 "parameters": [ |
3328 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "Identifier of the removed stylesheet." } | 3328 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "Identifier of the removed stylesheet." } |
3329 ], | 3329 ], |
3330 "description": "Fired whenever an active document stylesheet is
removed." | 3330 "description": "Fired whenever an active document stylesheet is
removed." |
3331 } | 3331 } |
3332 ] | 3332 ] |
3333 }, | 3333 }, |
3334 { | 3334 { |
| 3335 "domain": "DOMSnapshot", |
| 3336 "experimental": true, |
| 3337 "description": "This domain facilitates obtaining document snapshots wit
h DOM, layout, and style information.", |
| 3338 "dependencies": ["CSS", "DOM", "Page"], |
| 3339 "types": [ |
| 3340 { |
| 3341 "id": "DOMNode", |
| 3342 "type": "object", |
| 3343 "properties": [ |
| 3344 { "name": "nodeType", "type": "integer", "description": "<co
de>Node</code>'s nodeType." }, |
| 3345 { "name": "nodeName", "type": "string", "description": "<cod
e>Node</code>'s nodeName." }, |
| 3346 { "name": "nodeValue", "type": "string", "description": "<co
de>Node</code>'s nodeValue." }, |
| 3347 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "des
cription": "<code>Node</code>'s id, corresponds to DOM.Node.backendNodeId." }, |
| 3348 { "name": "childNodeIndexes", "type": "array", "items": { "t
ype": "integer" }, "optional": true, "description": "The indexes of the node's c
hild nodes in the <code>domNodes</code> array returned by <code>getSnapshot</cod
e>, if any." }, |
| 3349 { "name": "attributes", "type": "array", "items": { "$ref":
"NameValue" }, "optional": true, "description": "Attributes of an <code>Element<
/code> node." }, |
| 3350 { "name": "pseudoElementIndexes", "type": "array", "items":
{ "type": "integer" }, "optional": true, "description": "Indexes of pseudo eleme
nts associated with this node in the <code>domNodes</code> array returned by <co
de>getSnapshot</code>, if any." }, |
| 3351 { "name": "layoutNodeIndex", "type": "integer", "optional":
true, "description": "The index of the node's related layout tree node in the <c
ode>layoutTreeNodes</code> array returned by <code>getSnapshot</code>, if any."
}, |
| 3352 { "name": "documentURL", "type": "string", "optional": true,
"description": "Document URL that <code>Document</code> or <code>FrameOwner</co
de> node points to." }, |
| 3353 { "name": "baseURL", "type": "string", "optional": true, "de
scription": "Base URL that <code>Document</code> or <code>FrameOwner</code> node
uses for URL completion." }, |
| 3354 { "name": "publicId", "type": "string", "optional": true, "d
escription": "<code>DocumentType</code> node's publicId." }, |
| 3355 { "name": "systemId", "type": "string", "optional": true, "d
escription": "<code>DocumentType</code> node's systemId." }, |
| 3356 { "name": "frameId", "$ref": "Page.FrameId", "optional": tru
e, "description": "Frame ID for frame owner elements." }, |
| 3357 { "name": "contentDocumentIndex", "type": "integer", "option
al": true, "description": "The index of a frame owner element's content document
in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any
." }, |
| 3358 { "name": "importedDocumentIndex", "type": "integer", "optio
nal": true, "description": "Index of the imported document's node of a link elem
ent in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if
any." }, |
| 3359 { "name": "templateContentIndex", "type": "integer", "option
al": true, "description": "Index of the content node of a template element in th
e <code>domNodes</code> array returned by <code>getSnapshot</code>." }, |
| 3360 { "name": "pseudoType", "$ref": "DOM.PseudoType", "optional"
: true, "description": "Type of a pseudo element node." } |
| 3361 ], |
| 3362 "description": "A Node in the DOM tree." |
| 3363 }, |
| 3364 { |
| 3365 "id": "LayoutTreeNode", |
| 3366 "type": "object", |
| 3367 "properties": [ |
| 3368 { "name": "domNodeIndex", "type": "integer", "description":
"The index of the related DOM node in the <code>domNodes</code> array returned b
y <code>getSnapshot</code>." }, |
| 3369 { "name": "boundingBox", "$ref": "DOM.Rect", "description":
"The absolute position bounding box." }, |
| 3370 { "name": "layoutText", "type": "string", "optional": true,
"description": "Contents of the LayoutText, if any." }, |
| 3371 { "name": "inlineTextNodes", "type": "array", "optional": tr
ue, "items": { "$ref": "CSS.InlineTextBox" }, "description": "The post-layout in
line text nodes, if any." }, |
| 3372 { "name": "styleIndex", "type": "integer", "optional": true,
"description": "Index into the <code>computedStyles</code> array returned by <c
ode>getSnapshot</code>." } |
| 3373 ], |
| 3374 "description": "Details of an element in the DOM tree with a Lay
outObject." |
| 3375 }, |
| 3376 { |
| 3377 "id": "ComputedStyle", |
| 3378 "type": "object", |
| 3379 "properties": [ |
| 3380 { "name": "properties", "type": "array", "items": { "$ref":
"NameValue" }, "description": "Name/value pairs of computed style properties." } |
| 3381 ], |
| 3382 "description": "A subset of the full ComputedStyle as defined by
the request whitelist." |
| 3383 }, |
| 3384 { |
| 3385 "id": "NameValue", |
| 3386 "type": "object", |
| 3387 "properties": [ |
| 3388 { "name": "name", "type": "string", "description": "Attribut
e/property name." }, |
| 3389 { "name": "value", "type": "string", "description": "Attribu
te/property value." } |
| 3390 ], |
| 3391 "description": "A name/value pair." |
| 3392 } |
| 3393 ], |
| 3394 "commands": [ |
| 3395 { |
| 3396 "name": "getSnapshot", |
| 3397 "parameters": [ |
| 3398 { "name": "computedStyleWhitelist", "type": "array", "items"
: { "type": "string" }, "description": "Whitelist of computed styles to return."
} |
| 3399 ], |
| 3400 "returns": [ |
| 3401 { "name": "domNodes", "type": "array", "items": { "$ref": "D
OMNode" }, "description": "The nodes in the DOM tree. The DOMNode at index 0 cor
responds to the root document." }, |
| 3402 { "name": "layoutTreeNodes", "type": "array", "items": { "$r
ef": "LayoutTreeNode" }, "description": "The nodes in the layout tree." }, |
| 3403 { "name": "computedStyles", "type": "array", "items": { "$re
f": "ComputedStyle" }, "description": "Whitelisted ComputedStyle properties for
each node in the layout tree." } |
| 3404 ], |
| 3405 "description": "Returns a document snapshot, including the full
DOM tree of the root node (including iframes, template contents, and imported do
cuments) in a flattened array, as well as layout and white-listed computed style
information for the nodes. Shadow DOM in the returned DOM tree is flattened. " |
| 3406 } |
| 3407 ] |
| 3408 }, |
| 3409 { |
3335 "domain": "IO", | 3410 "domain": "IO", |
3336 "description": "Input/Output operations for streams produced by DevTools
.", | 3411 "description": "Input/Output operations for streams produced by DevTools
.", |
3337 "experimental": true, | 3412 "experimental": true, |
3338 "types": [ | 3413 "types": [ |
3339 { | 3414 { |
3340 "id": "StreamHandle", | 3415 "id": "StreamHandle", |
3341 "type": "string" | 3416 "type": "string" |
3342 } | 3417 } |
3343 ], | 3418 ], |
3344 "commands": [ | 3419 "commands": [ |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4735 "parameters": [ | 4810 "parameters": [ |
4736 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } | 4811 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } |
4737 ], | 4812 ], |
4738 "returns": [ | 4813 "returns": [ |
4739 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } | 4814 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } |
4740 ] | 4815 ] |
4741 } | 4816 } |
4742 ] | 4817 ] |
4743 }] | 4818 }] |
4744 } | 4819 } |
OLD | NEW |