Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 { | |
|
sadrul
2016/10/17 16:05:09
Same comment about link to doc
Sarmad Hashmi
2016/10/17 16:58:21
Copied from other comment: There's no specific doc
sadrul
2016/10/17 17:44:36
OK. In that case, would it be possible to add a RE
| |
| 2 "domains": [ | |
| 3 { | |
| 4 "commands": [ | |
| 5 { | |
| 6 "description": "Enables DOM agent for the given page.", | |
| 7 "name": "enable" | |
| 8 }, | |
| 9 { | |
| 10 "description": "Disables DOM agent for the given page.", | |
| 11 "name": "disable" | |
| 12 }, | |
| 13 { | |
| 14 "description": "Returns the root DOM node to the caller.", | |
| 15 "name": "getDocument", | |
| 16 "returns": [ | |
| 17 { | |
| 18 "$ref": "Node", | |
| 19 "description": "Resulting node.", | |
| 20 "name": "root" | |
| 21 } | |
| 22 ] | |
| 23 } | |
| 24 ], | |
| 25 "domain": "DOM", | |
| 26 "types": [ | |
| 27 { | |
| 28 "description": "Unique DOM node identifier.", | |
| 29 "id": "NodeId", | |
| 30 "type": "integer" | |
| 31 }, | |
| 32 { | |
| 33 "description": "DOM interaction is implemented in terms of m irror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.", | |
| 34 "id": "Node", | |
| 35 "properties": [ | |
| 36 { | |
| 37 "$ref": "NodeId", | |
| 38 "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and wil l only fire DOM events for nodes known to the client.", | |
| 39 "name": "nodeId" | |
| 40 }, | |
| 41 { | |
| 42 "description": "<code>Node</code>'s nodeType.", | |
| 43 "name": "nodeType", | |
| 44 "type": "integer" | |
| 45 }, | |
| 46 { | |
| 47 "description": "<code>Node</code>'s nodeName.", | |
| 48 "name": "nodeName", | |
| 49 "type": "string" | |
| 50 }, | |
| 51 { | |
| 52 "description": "Child count for <code>Container</cod e> nodes.", | |
| 53 "name": "childNodeCount", | |
| 54 "optional": true, | |
| 55 "type": "integer" | |
| 56 }, | |
| 57 { | |
| 58 "description": "Child nodes of this node when reques ted with children.", | |
| 59 "items": { | |
| 60 "$ref": "Node" | |
| 61 }, | |
| 62 "name": "children", | |
| 63 "optional": true, | |
| 64 "type": "array" | |
| 65 }, | |
| 66 { | |
| 67 "description": "Attributes of the <code>Element</cod e> node in the form of flat array <code>[name1, value1, name2, value2]</code>.", | |
| 68 "items": { | |
| 69 "type": "string" | |
| 70 }, | |
| 71 "name": "attributes", | |
| 72 "optional": true, | |
| 73 "type": "array" | |
| 74 }, | |
| 75 { | |
| 76 "description": "<code>Attr</code>'s name.", | |
| 77 "name": "name", | |
| 78 "optional": true, | |
| 79 "type": "string" | |
| 80 }, | |
| 81 { | |
| 82 "description": "<code>Attr</code>'s value.", | |
| 83 "name": "value", | |
| 84 "optional": true, | |
| 85 "type": "string" | |
| 86 } | |
| 87 ], | |
| 88 "type": "object" | |
| 89 } | |
| 90 ] | |
| 91 } | |
| 92 ], | |
| 93 "version": { | |
| 94 "major": "1", | |
| 95 "minor": "0" | |
| 96 } | |
| 97 } | |
| OLD | NEW |