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

Unified Diff: Source/devtools/protocol.json

Issue 397303002: DevTools: [Elements] Implement shortcut-based node cut-copy-pasting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add visual feedback for nodes in the clipboard Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index a548f63d462d76661a9095bc4683baec583a9655..4d524251469c9fa0203b47530755031d99ff2d03 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2293,9 +2293,22 @@
"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 copy into." },
aandrey 2014/07/18 05:30:05 to drop into
apavlov 2014/07/18 09:02:08 It is not clear WHAT we are going to drop. Expande
+ { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop element copy before given one." },
aandrey 2014/07/18 05:30:05 add into description what an empty insertBeforeNod
apavlov 2014/07/18 09:02:08 Done.
+ { "name": "deep", "type": "boolean", "optional": true, "description": "Whether a deep clone should be made. True by default." }
+ ],
+ "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": "nodeId", "$ref": "NodeId", "description": "Id of the node to move." },
{ "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop into." },
{ "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before given one." }
],
« Source/devtools/front_end/sdk/DOMModel.js ('K') | « Source/devtools/front_end/sdk/DOMModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698