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

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: move to CSS domain, remove getLayoutTreeAndStyles Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2981 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 { "name": "startCharacterIndex", "type": "integer", "descrip tion": "The starting index in characters, for this post layout textbox substring ." }, 2992 { "name": "startCharacterIndex", "type": "integer", "descrip tion": "The starting index in characters, for this post layout textbox substring ." },
2993 { "name": "numCharacters", "type": "integer", "description": "The number of characters in this post layout textbox substring." } 2993 { "name": "numCharacters", "type": "integer", "description": "The number of characters in this post layout textbox substring." }
2994 ], 2994 ],
2995 "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between version s.", 2995 "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between version s.",
2996 "experimental": true 2996 "experimental": true
2997 }, 2997 },
2998 { 2998 {
2999 "id": "LayoutTreeNode", 2999 "id": "LayoutTreeNode",
3000 "type": "object", 3000 "type": "object",
3001 "properties": [ 3001 "properties": [
3002 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e id of the related DOM node matching one from DOM.GetDocument." }, 3002 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e id of the related DOM node in the domNodes array returned by getDocumentSnapsh ot." },
pfeldman 2017/05/31 17:56:37 It can't be of type NodeId - NodeId is a node hand
3003 { "name": "boundingBox", "$ref": "DOM.Rect", "description": "The absolute position bounding box." }, 3003 { "name": "boundingBox", "$ref": "DOM.Rect", "description": "The absolute position bounding box." },
3004 { "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText if any" }, 3004 { "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText if any" },
3005 { "name": "inlineTextNodes", "type": "array", "optional": tr ue, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." }, 3005 { "name": "inlineTextNodes", "type": "array", "optional": tr ue, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." },
3006 { "name": "styleIndex", "type": "integer", "optional": true, "description": "Index into the computedStyles array returned by getLayoutTreeAn dStyles." } 3006 { "name": "styleIndex", "type": "integer", "optional": true, "description": "Index into the computedStyles array returned by getDocumentSnap shot." }
3007 ], 3007 ],
3008 "description": "Details of an element in the DOM tree with a Lay outObject.", 3008 "description": "Details of an element in the DOM tree with a Lay outObject.",
3009 "experimental": true 3009 "experimental": true
3010 }, 3010 },
3011 { 3011 {
3012 "id": "ComputedStyle", 3012 "id": "ComputedStyle",
3013 "type": "object", 3013 "type": "object",
3014 "properties": [ 3014 "properties": [
3015 { "name": "properties", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" } } 3015 { "name": "properties", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" } }
3016 ], 3016 ],
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
3204 "name": "getBackgroundColors", 3204 "name": "getBackgroundColors",
3205 "parameters": [ 3205 "parameters": [
3206 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to get background colors for." } 3206 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to get background colors for." }
3207 ], 3207 ],
3208 "returns": [ 3208 "returns": [
3209 { "name": "backgroundColors", "type": "array", "items": { "t ype": "string" }, "description": "The range of background colors behind this ele ment, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simpl y that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will b e ignored (as if the image had failed to load).", "optional": true } 3209 { "name": "backgroundColors", "type": "array", "items": { "t ype": "string" }, "description": "The range of background colors behind this ele ment, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simpl y that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will b e ignored (as if the image had failed to load).", "optional": true }
3210 ], 3210 ],
3211 "experimental": true 3211 "experimental": true
3212 }, 3212 },
3213 { 3213 {
3214 "name": "getLayoutTreeAndStyles", 3214 "name": "getDocumentSnapshot",
3215 "parameters": [ 3215 "parameters": [
3216 { "name": "computedStyleWhitelist", "type": "array", "items" : { "type": "string" }, "description": "Whitelist of computed styles to return." } 3216 { "name": "computedStyleWhitelist", "type": "array", "items" : { "type": "string" }, "description": "Whitelist of computed styles to return." },
3217 { "name": "domDepth", "type": "integer", "optional": true, " description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." },
pfeldman 2017/05/31 17:56:37 it is called depth everywhere else.
3218 { "name": "pierce", "type": "boolean", "optional": true, "de scription": "Whether or not iframes and shadow roots should be traversed when re turning the subtree (default is false)." }
3217 ], 3219 ],
3218 "returns": [ 3220 "returns": [
3219 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "LayoutTreeNode" } }, 3221 { "name": "domNodes", "type": "array", "items": { "$ref": "D OM.Node" }, "description": "The nodes in the DOM tree. These nodes will also be considered as known to the DOM domain client in the future." },
pfeldman 2017/05/31 17:56:37 I don't think it makes much sense - we should not
3220 { "name": "computedStyles", "type": "array", "items": { "$re f": "ComputedStyle" } } 3222 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "LayoutTreeNode" }, "description": "The nodes in the layout tree." },
3223 { "name": "computedStyles", "type": "array", "items": { "$re f": "ComputedStyle" }, "description": "Whitelisted ComputedStyle properties for each node in the layout tree." }
3221 ], 3224 ],
3222 "description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It o nly returns pushed nodes, on way to pull all nodes is to call DOM.getDocument wi th a depth of -1.", 3225 "description": "Returns a document snapshot, including the DOM t ree of the root node up to the given depth in a flattened array, as well as layo ut and white-listed computed style information for the nodes. Requires that the DOM domain is enabled.",
3223 "experimental": true 3226 "experimental": true
3224 }, 3227 },
3225 { 3228 {
3226 "name": "startRuleUsageTracking", 3229 "name": "startRuleUsageTracking",
3227 "description": "Enables the selector recording.", 3230 "description": "Enables the selector recording.",
3228 "experimental": true 3231 "experimental": true
3229 }, 3232 },
3230 { 3233 {
3231 "name": "takeCoverageDelta", 3234 "name": "takeCoverageDelta",
3232 "description": "Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)", 3235 "description": "Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)",
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
4673 "parameters": [ 4676 "parameters": [
4674 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } 4677 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }
4675 ], 4678 ],
4676 "returns": [ 4679 "returns": [
4677 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } 4680 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." }
4678 ] 4681 ]
4679 } 4682 }
4680 ] 4683 ]
4681 }] 4684 }]
4682 } 4685 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698