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

Side by Side 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: Forbid moving node into self or descendant 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/sdk/DOMModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": 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 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 "name": "getAttributes", 2286 "name": "getAttributes",
2287 "parameters": [ 2287 "parameters": [
2288 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." } 2288 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." }
2289 ], 2289 ],
2290 "returns": [ 2290 "returns": [
2291 { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and val ues." } 2291 { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and val ues." }
2292 ], 2292 ],
2293 "description": "Returns attributes for the specified node." 2293 "description": "Returns attributes for the specified node."
2294 }, 2294 },
2295 { 2295 {
2296 "name": "copyTo",
2297 "parameters": [
2298 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to copy." },
2299 { "name": "targetNodeId", "$ref": "NodeId", "description": " Id of the element to drop the copy into." },
2300 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional" : true, "description": "Drop node copy before this node (if absent, the copy bec omes the last child of <code>targetNodeId</code>)." },
2301 { "name": "deep", "type": "boolean", "optional": true, "desc ription": "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
2302 ],
2303 "returns": [
2304 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node clone." }
2305 ],
2306 "description": "Clones the specified node and places the copy in to the new container before the given anchor."
2307 },
2308 {
2296 "name": "moveTo", 2309 "name": "moveTo",
2297 "parameters": [ 2310 "parameters": [
2298 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." }, 2311 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to move." },
2299 { "name": "targetNodeId", "$ref": "NodeId", "description": " Id of the element to drop into." }, 2312 { "name": "targetNodeId", "$ref": "NodeId", "description": " Id of the element to drop the moved node into." },
2300 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional" : true, "description": "Drop node before given one." } 2313 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional" : true, "description": "Drop node before this one (if absent, the moved node bec omes the last child of <code>targetNodeId</code>)." }
2301 ], 2314 ],
2302 "returns": [ 2315 "returns": [
2303 { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." } 2316 { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." }
2304 ], 2317 ],
2305 "description": "Moves node into the new container, places it bef ore the given anchor." 2318 "description": "Moves node into the new container, places it bef ore the given anchor."
2306 }, 2319 },
2307 { 2320 {
2308 "name": "undo", 2321 "name": "undo",
2309 "description": "Undoes the last performed action.", 2322 "description": "Undoes the last performed action.",
2310 "hidden": true 2323 "hidden": true
(...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after
4255 { 4268 {
4256 "name": "dataAvailable", 4269 "name": "dataAvailable",
4257 "parameters": [ 4270 "parameters": [
4258 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4271 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4259 ], 4272 ],
4260 "handlers": ["browser", "frontend"] 4273 "handlers": ["browser", "frontend"]
4261 } 4274 }
4262 ] 4275 ]
4263 }] 4276 }]
4264 } 4277 }
OLDNEW
« no previous file with comments | « 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