Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 { | 1 { |
| 2 "domains": [ | 2 "domains": [ |
| 3 { | 3 { |
| 4 "commands": [ | 4 "commands": [ |
| 5 { | 5 { |
| 6 "description": "Enables DOM agent for the given page.", | 6 "description": "Enables DOM agent for the given page.", |
| 7 "name": "enable" | 7 "name": "enable" |
| 8 }, | 8 }, |
| 9 { | 9 { |
| 10 "description": "Disables DOM agent for the given page.", | 10 "description": "Disables DOM agent for the given page.", |
| 11 "name": "disable" | 11 "name": "disable" |
| 12 }, | 12 }, |
| 13 { | 13 { |
| 14 "description": "Returns the root DOM node to the caller.", | 14 "description": "Returns the root DOM node to the caller.", |
| 15 "name": "getDocument", | 15 "name": "getDocument", |
| 16 "returns": [ | 16 "returns": [ |
| 17 { | 17 { |
| 18 "$ref": "Node", | 18 "$ref": "Node", |
| 19 "description": "Resulting node.", | 19 "description": "Resulting node.", |
| 20 "name": "root" | 20 "name": "root" |
| 21 } | 21 } |
| 22 ] | 22 ] |
| 23 } | 23 } |
| 24 ], | 24 ], |
| 25 "events": [ | |
| 26 { | |
| 27 "name": "childNodeInserted", | |
| 28 "parameters": [ | |
| 29 { | |
| 30 "description": "Id of the node that has changed.", | |
| 31 "name": "parentNodeId", | |
| 32 "$ref": "NodeId" | |
| 33 }, | |
| 34 { | |
| 35 "description": "Id of the previous sibling.", | |
|
sadrul
2016/11/04 15:39:17
Document in the description that 0 means at the be
Sarmad Hashmi
2016/11/04 16:03:50
Done.
| |
| 36 "name": "previousNodeId", | |
| 37 "$ref": "NodeId" | |
| 38 }, | |
| 39 { | |
| 40 "description": "Inserted node data.", | |
| 41 "name": "node", | |
| 42 "$ref": "Node" | |
| 43 } | |
| 44 ], | |
| 45 "description": "Mirrors <code>DOMNodeInserted</code> event." | |
| 46 }, | |
| 47 { | |
| 48 "name": "childNodeRemoved", | |
| 49 "parameters": [ | |
| 50 { | |
| 51 "description": "Parent id.", | |
| 52 "name": "parentNodeId", | |
| 53 "$ref": "NodeId" | |
| 54 }, | |
| 55 { | |
| 56 "description": "Id of the node that has been removed .", | |
| 57 "name": "nodeId", | |
| 58 "$ref": "NodeId" | |
| 59 } | |
| 60 ], | |
| 61 "description": "Mirrors <code>DOMNodeRemoved</code> event." | |
| 62 } | |
| 63 ], | |
| 25 "domain": "DOM", | 64 "domain": "DOM", |
| 26 "types": [ | 65 "types": [ |
| 27 { | 66 { |
| 28 "description": "Unique DOM node identifier.", | 67 "description": "Unique DOM node identifier.", |
| 29 "id": "NodeId", | 68 "id": "NodeId", |
| 30 "type": "integer" | 69 "type": "integer" |
| 31 }, | 70 }, |
| 32 { | 71 { |
| 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.", | 72 "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", | 73 "id": "Node", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 "type": "object" | 127 "type": "object" |
| 89 } | 128 } |
| 90 ] | 129 ] |
| 91 } | 130 } |
| 92 ], | 131 ], |
| 93 "version": { | 132 "version": { |
| 94 "major": "1", | 133 "major": "1", |
| 95 "minor": "0" | 134 "minor": "0" |
| 96 } | 135 } |
| 97 } | 136 } |
| OLD | NEW |