Chromium Code Reviews| Index: Source/devtools/protocol.json |
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
| index a548f63d462d76661a9095bc4683baec583a9655..c9ff73f4e1f3e036883a3836fd79ddd785a315a1 100644 |
| --- a/Source/devtools/protocol.json |
| +++ b/Source/devtools/protocol.json |
| @@ -2293,11 +2293,24 @@ |
| "description": "Returns attributes for the specified node." |
| }, |
| { |
| + "name": "copyTo", |
| + "parameters": [ |
| + { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to copy." }, |
| + { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop the copy into." }, |
| + { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node copy before this node (if absent, the copy becomes the last child of <code>targetNodeId</code>)." }, |
| + { "name": "deep", "type": "boolean", "optional": true, "description": "Whether a deep clone should be made. <code>true</code> by default." } |
|
pfeldman
2014/07/25 09:57:37
How can this be not deep?
apavlov
2014/07/25 10:02:04
I'm just exposing the existing DOM API to our prot
|
| + ], |
| + "returns": [ |
| + { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node clone." } |
| + ], |
| + "description": "Clones the specified node and places the copy into the new container before the given anchor." |
| + }, |
| + { |
| "name": "moveTo", |
| "parameters": [ |
| - { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." }, |
| - { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop into." }, |
| - { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before given one." } |
| + { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to move." }, |
| + { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop the moved node into." }, |
| + { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before this one (if absent, the moved node becomes the last child of <code>targetNodeId</code>)." } |
| ], |
| "returns": [ |
| { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." } |