Chromium Code Reviews| 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 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2054 { "name": "contentDocument", "$ref": "Node", "optional": tru e, "description": "Content document for frame owner elements." }, | 2054 { "name": "contentDocument", "$ref": "Node", "optional": tru e, "description": "Content document for frame owner elements." }, |
| 2055 { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "experimental": true }, | 2055 { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "experimental": true }, |
| 2056 { "name": "templateContent", "$ref": "Node", "optional": tru e, "description": "Content document fragment for template elements.", "experimen tal": true }, | 2056 { "name": "templateContent", "$ref": "Node", "optional": tru e, "description": "Content document fragment for template elements.", "experimen tal": true }, |
| 2057 { "name": "pseudoElements", "type": "array", "items": { "$re f": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "experimental": true }, | 2057 { "name": "pseudoElements", "type": "array", "items": { "$re f": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "experimental": true }, |
| 2058 { "name": "importedDocument", "$ref": "Node", "optional": tr ue, "description": "Import document for the HTMLImport links." }, | 2058 { "name": "importedDocument", "$ref": "Node", "optional": tr ue, "description": "Import document for the HTMLImport links." }, |
| 2059 { "name": "distributedNodes", "type": "array", "items": { "$ ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for g iven insertion point.", "experimental": true } | 2059 { "name": "distributedNodes", "type": "array", "items": { "$ ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for g iven insertion point.", "experimental": true } |
| 2060 ], | 2060 ], |
| 2061 "description": "DOM interaction is implemented in terms of mirro r objects that represent the actual DOM nodes. DOMNode is a base node mirror typ e." | 2061 "description": "DOM interaction is implemented in terms of mirro r objects that represent the actual DOM nodes. DOMNode is a base node mirror typ e." |
| 2062 }, | 2062 }, |
| 2063 { | 2063 { |
| 2064 "id": "InlineTextBox", | |
| 2065 "type": "object", | |
| 2066 "properties": [ | |
| 2067 { "name": "boundingBox", "$ref": "Rect", "description": "The absolute position bounding box." }, | |
| 2068 { "name": "startCharacterIndex", "type": "integer", "descrip tion": "The starting index in characters, for this post layout textbox substring ." }, | |
| 2069 { "name": "numCharacters", "type": "integer", "description": "The number of characters in this post layout textbox substring." } | |
| 2070 ], | |
| 2071 "description": "Details of post layout rendered text positions. Note layout may change between ", | |
|
Sami
2016/09/30 10:05:23
Cut off sentence?
alex clarke (OOO till 29th)
2016/09/30 10:27:53
Done.
| |
| 2072 "experimental": true | |
| 2073 }, | |
| 2074 { | |
| 2075 "id": "LayoutTreeNode", | |
| 2076 "type": "object", | |
| 2077 "properties": [ | |
| 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." }, | |
| 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." } | |
| 2082 ], | |
| 2083 "description": "Details of an element in the DOM tree with a Lay outObject.", | |
| 2084 "experimental": true | |
| 2085 }, | |
| 2086 { | |
| 2064 "id": "RGBA", | 2087 "id": "RGBA", |
| 2065 "type": "object", | 2088 "type": "object", |
| 2066 "properties": [ | 2089 "properties": [ |
| 2067 { "name": "r", "type": "integer", "description": "The red co mponent, in the [0-255] range." }, | 2090 { "name": "r", "type": "integer", "description": "The red co mponent, in the [0-255] range." }, |
| 2068 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." }, | 2091 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." }, |
| 2069 { "name": "b", "type": "integer", "description": "The blue c omponent, in the [0-255] range." }, | 2092 { "name": "b", "type": "integer", "description": "The blue c omponent, in the [0-255] range." }, |
| 2070 { "name": "a", "type": "number", "optional": true, "descript ion": "The alpha component, in the [0-1] range (default: 1)." } | 2093 { "name": "a", "type": "number", "optional": true, "descript ion": "The alpha component, in the [0-1] range (default: 1)." } |
| 2071 ], | 2094 ], |
| 2072 "description": "A structure holding an RGBA color." | 2095 "description": "A structure holding an RGBA color." |
| 2073 }, | 2096 }, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2159 "description": "Disables DOM agent for the given page." | 2182 "description": "Disables DOM agent for the given page." |
| 2160 }, | 2183 }, |
| 2161 { | 2184 { |
| 2162 "name": "getDocument", | 2185 "name": "getDocument", |
| 2163 "returns": [ | 2186 "returns": [ |
| 2164 { "name": "root", "$ref": "Node", "description": "Resulting node." } | 2187 { "name": "root", "$ref": "Node", "description": "Resulting node." } |
| 2165 ], | 2188 ], |
| 2166 "description": "Returns the root DOM node to the caller." | 2189 "description": "Returns the root DOM node to the caller." |
| 2167 }, | 2190 }, |
| 2168 { | 2191 { |
| 2192 "name": "getLayoutTreeNodes", | |
| 2193 "returns": [ | |
| 2194 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "LayoutTreeNode" } } | |
| 2195 ], | |
| 2196 "description": "Returns the document's LayoutTreeNodes to the ca ller.", | |
|
Sami
2016/09/30 10:05:23
Maybe mention this includes child documents too?
alex clarke (OOO till 29th)
2016/09/30 10:27:53
Done.
| |
| 2197 "experimental": true | |
| 2198 }, | |
| 2199 { | |
| 2169 "name": "collectClassNamesFromSubtree", | 2200 "name": "collectClassNamesFromSubtree", |
| 2170 "parameters": [ | 2201 "parameters": [ |
| 2171 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." } | 2202 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." } |
| 2172 ], | 2203 ], |
| 2173 "returns": [ | 2204 "returns": [ |
| 2174 {"name": "classNames", "type": "array", "items": { "type": " string" }, "description": "Class name list." } | 2205 {"name": "classNames", "type": "array", "items": { "type": " string" }, "description": "Class name list." } |
| 2175 ], | 2206 ], |
| 2176 "description": "Collects class names for the node with given id and all of it's child nodes.", | 2207 "description": "Collects class names for the node with given id and all of it's child nodes.", |
| 2177 "experimental": true | 2208 "experimental": true |
| 2178 }, | 2209 }, |
| (...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4572 "description": "Informs that port was successfully bound and got a specified connection id.", | 4603 "description": "Informs that port was successfully bound and got a specified connection id.", |
| 4573 "parameters": [ | 4604 "parameters": [ |
| 4574 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, | 4605 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, |
| 4575 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } | 4606 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } |
| 4576 ], | 4607 ], |
| 4577 "handlers": ["browser"] | 4608 "handlers": ["browser"] |
| 4578 } | 4609 } |
| 4579 ] | 4610 ] |
| 4580 }] | 4611 }] |
| 4581 } | 4612 } |
| OLD | NEW |