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

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

Issue 2413693002: Rename DOM.getLayoutTreeNodes to CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Created 4 years, 2 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 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after
2071 "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between version s.", 2071 "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between version s.",
2072 "experimental": true 2072 "experimental": true
2073 }, 2073 },
2074 { 2074 {
2075 "id": "LayoutTreeNode", 2075 "id": "LayoutTreeNode",
2076 "type": "object", 2076 "type": "object",
2077 "properties": [ 2077 "properties": [
2078 { "name": "backendNodeId", "$ref": "BackendNodeId", "descrip tion": "The BackendNodeId of the related DOM node." }, 2078 { "name": "backendNodeId", "$ref": "BackendNodeId", "descrip tion": "The BackendNodeId of the related DOM node." },
2079 { "name": "boundingBox", "$ref": "Rect", "description": "The absolute position bounding box." }, 2079 { "name": "boundingBox", "$ref": "Rect", "description": "The absolute position bounding box." },
2080 { "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText if any" }, 2080 { "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText if any" },
2081 { "name": "inlineTextNodes", "type": "array", "optional": tr ue, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." } 2081 { "name": "inlineTextNodes", "type": "array", "optional": tr ue, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." },
2082 { "name": "styleIndex", "type": "integer", "optional": true, "description": "Index into the computedStyles array returned by getLayoutTreeNo des." }
2082 ], 2083 ],
2083 "description": "Details of an element in the DOM tree with a Lay outObject.", 2084 "description": "Details of an element in the DOM tree with a Lay outObject.",
2084 "experimental": true 2085 "experimental": true
2085 }, 2086 },
2086 { 2087 {
2088 "id": "ComputedStyleProperty",
2089 "type": "object",
2090 "properties": [
2091 { "name": "name", "type": "string", "description": "Computed style property name." },
2092 { "name": "value", "type": "string", "description": "Compute d style property value." }
2093 ],
2094 "experimental": true
2095 },
2096 {
2097 "id": "ComputedStyle",
2098 "type": "object",
2099 "properties": [
2100 { "name": "properties", "type": "array", "items": { "$ref": "ComputedStyleProperty" } }
2101 ],
2102 "description": "A subset of the full ComputedStyle as defined by the request whitelist.",
2103 "experimental": true
2104 },
2105 {
2087 "id": "RGBA", 2106 "id": "RGBA",
2088 "type": "object", 2107 "type": "object",
2089 "properties": [ 2108 "properties": [
2090 { "name": "r", "type": "integer", "description": "The red co mponent, in the [0-255] range." }, 2109 { "name": "r", "type": "integer", "description": "The red co mponent, in the [0-255] range." },
2091 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." }, 2110 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." },
2092 { "name": "b", "type": "integer", "description": "The blue c omponent, in the [0-255] range." }, 2111 { "name": "b", "type": "integer", "description": "The blue c omponent, in the [0-255] range." },
2093 { "name": "a", "type": "number", "optional": true, "descript ion": "The alpha component, in the [0-1] range (default: 1)." } 2112 { "name": "a", "type": "number", "optional": true, "descript ion": "The alpha component, in the [0-1] range (default: 1)." }
2094 ], 2113 ],
2095 "description": "A structure holding an RGBA color." 2114 "description": "A structure holding an RGBA color."
2096 }, 2115 },
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 "description": "Disables DOM agent for the given page." 2201 "description": "Disables DOM agent for the given page."
2183 }, 2202 },
2184 { 2203 {
2185 "name": "getDocument", 2204 "name": "getDocument",
2186 "returns": [ 2205 "returns": [
2187 { "name": "root", "$ref": "Node", "description": "Resulting node." } 2206 { "name": "root", "$ref": "Node", "description": "Resulting node." }
2188 ], 2207 ],
2189 "description": "Returns the root DOM node to the caller." 2208 "description": "Returns the root DOM node to the caller."
2190 }, 2209 },
2191 { 2210 {
2192 "name": "getLayoutTreeNodes", 2211 "name": "getLayoutTreeNodes",
dgozman 2016/10/12 21:00:40 I'd rename this to getLayoutTreeAndStyles and move
alex clarke (OOO till 29th) 2016/10/13 20:25:10 Done.
2212 "parameters": [
2213 { "name": "computedStyleWhitelist", "type": "array", "items" : { "type": "string" }, "description": "Whitelist of computed styles to return." }
2214 ],
2193 "returns": [ 2215 "returns": [
2194 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "LayoutTreeNode" } } 2216 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "LayoutTreeNode" } },
2217 { "name": "computedStyles", "type": "array", "items": { "$re f": "ComputedStyle" } }
2195 ], 2218 ],
2196 "description": "Returns the document's LayoutTreeNodes to the ca ller, and those of any iframes too.", 2219 "description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style.",
2197 "experimental": true 2220 "experimental": true
2198 }, 2221 },
2199 { 2222 {
2200 "name": "collectClassNamesFromSubtree", 2223 "name": "collectClassNamesFromSubtree",
2201 "parameters": [ 2224 "parameters": [
2202 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." } 2225 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." }
2203 ], 2226 ],
2204 "returns": [ 2227 "returns": [
2205 {"name": "classNames", "type": "array", "items": { "type": " string" }, "description": "Class name list." } 2228 {"name": "classNames", "type": "array", "items": { "type": " string" }, "description": "Class name list." }
2206 ], 2229 ],
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
4639 "description": "Informs that port was successfully bound and got a specified connection id.", 4662 "description": "Informs that port was successfully bound and got a specified connection id.",
4640 "parameters": [ 4663 "parameters": [
4641 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4664 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4642 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4665 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4643 ], 4666 ],
4644 "handlers": ["browser"] 4667 "handlers": ["browser"]
4645 } 4668 }
4646 ] 4669 ]
4647 }] 4670 }]
4648 } 4671 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698