Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: add todo Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after
3324 { 3324 {
3325 "name": "styleSheetRemoved", 3325 "name": "styleSheetRemoved",
3326 "parameters": [ 3326 "parameters": [
3327 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." } 3327 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." }
3328 ], 3328 ],
3329 "description": "Fired whenever an active document stylesheet is removed." 3329 "description": "Fired whenever an active document stylesheet is removed."
3330 } 3330 }
3331 ] 3331 ]
3332 }, 3332 },
3333 { 3333 {
3334 "domain": "DOMSnapshot",
3335 "experimental": true,
3336 "description": "This domain facilitates obtaining document snapshots wit h DOM, layout, and style information.",
3337 "dependencies": ["CSS", "DOM", "Page"],
3338 "types": [
3339 {
3340 "id": "DOMNode",
3341 "type": "object",
3342 "properties": [
3343 { "name": "nodeType", "type": "integer", "description": "<co de>Node</code>'s nodeType." },
3344 { "name": "nodeName", "type": "string", "description": "<cod e>Node</code>'s nodeName." },
3345 { "name": "nodeValue", "type": "string", "description": "<co de>Node</code>'s nodeValue." },
3346 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "des cription": "<code>Node</code>'s id, corresponds to DOM.Node.backendNodeId." },
3347 { "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." },
3348 { "name": "attributes", "type": "array", "items": { "$ref": "NameValue" }, "optional": true, "description": "Attributes of an <code>Element< /code> node." },
3349 { "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." },
3350 { "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." },
3351 { "name": "auxProperties", "$ref": "AuxiliaryProperties", "o ptional": true, "description": "Additional properties for nodes of particular ty pes." }
3352 ],
3353 "description": "A Node in the DOM tree."
3354 },
3355 {
3356 "id": "AuxiliaryProperties",
pfeldman 2017/06/07 21:33:35 There is no point in the nesting, my proposal was
Eric Seckler 2017/06/09 13:01:54 It's more about the supported keys, rather than th
3357 "type": "object",
3358 "properties": [
3359 { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</co de> node points to." },
3360 { "name": "baseURL", "type": "string", "optional": true, "de scription": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion." },
3361 { "name": "publicId", "type": "string", "optional": true, "d escription": "<code>DocumentType</code> node's publicId." },
3362 { "name": "systemId", "type": "string", "optional": true, "d escription": "<code>DocumentType</code> node's systemId." },
3363 { "name": "frameId", "$ref": "Page.FrameId", "optional": tru e, "description": "Frame ID for frame owner elements." },
3364 { "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 ." },
3365 { "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." },
3366 { "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>." },
3367 { "name": "pseudoType", "$ref": "DOM.PseudoType", "optional" : true, "description": "Type of a pseudo element node." }
3368 ],
3369 "description": "Additional properties for DOM nodes of particula r types."
3370 },
3371 {
3372 "id": "LayoutTreeNode",
3373 "type": "object",
3374 "properties": [
3375 { "name": "domNodeIndex", "type": "integer", "description": "The index of the related DOM node in the <code>domNodes</code> array returned b y <code>getSnapshot</code>." },
3376 { "name": "boundingBox", "$ref": "DOM.Rect", "description": "The absolute position bounding box." },
3377 { "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText, if any." },
3378 { "name": "inlineTextNodes", "type": "array", "optional": tr ue, "items": { "$ref": "CSS.InlineTextBox" }, "description": "The post-layout in line text nodes, if any." },
3379 { "name": "styleIndex", "type": "integer", "optional": true, "description": "Index into the <code>computedStyles</code> array returned by <c ode>getSnapshot</code>." }
3380 ],
3381 "description": "Details of an element in the DOM tree with a Lay outObject."
3382 },
3383 {
3384 "id": "ComputedStyle",
3385 "type": "object",
3386 "properties": [
3387 { "name": "properties", "type": "array", "items": { "$ref": "NameValue" }, "description": "Name/value pairs of computed style properties." }
3388 ],
3389 "description": "A subset of the full ComputedStyle as defined by the request whitelist."
3390 },
3391 {
3392 "id": "NameValue",
3393 "type": "object",
3394 "properties": [
3395 { "name": "name", "type": "string", "description": "Attribut e/property name." },
3396 { "name": "value", "type": "string", "description": "Attribu te/property value." }
3397 ],
3398 "description": "A name/value pair."
3399 }
3400 ],
3401 "commands": [
3402 {
3403 "name": "getSnapshot",
3404 "parameters": [
3405 { "name": "computedStyleWhitelist", "type": "array", "items" : { "type": "string" }, "description": "Whitelist of computed styles to return." }
3406 ],
3407 "returns": [
3408 { "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." },
3409 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "LayoutTreeNode" }, "description": "The nodes in the layout tree." },
3410 { "name": "computedStyles", "type": "array", "items": { "$re f": "ComputedStyle" }, "description": "Whitelisted ComputedStyle properties for each node in the layout tree." }
3411 ],
3412 "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. "
3413 }
3414 ]
3415 },
3416 {
3334 "domain": "IO", 3417 "domain": "IO",
3335 "description": "Input/Output operations for streams produced by DevTools .", 3418 "description": "Input/Output operations for streams produced by DevTools .",
3336 "experimental": true, 3419 "experimental": true,
3337 "types": [ 3420 "types": [
3338 { 3421 {
3339 "id": "StreamHandle", 3422 "id": "StreamHandle",
3340 "type": "string" 3423 "type": "string"
3341 } 3424 }
3342 ], 3425 ],
3343 "commands": [ 3426 "commands": [
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
4734 "parameters": [ 4817 "parameters": [
4735 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } 4818 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }
4736 ], 4819 ],
4737 "returns": [ 4820 "returns": [
4738 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } 4821 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." }
4739 ] 4822 ]
4740 } 4823 }
4741 ] 4824 ]
4742 }] 4825 }]
4743 } 4826 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698