| Index: Source/devtools/front_end/sdk/DOMModel.js
|
| diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
|
| index 66253b66f01e67fc67155c7d7a47013946ff1eb1..a54e229e04e485420a379bc99cf28ef4567677f9 100644
|
| --- a/Source/devtools/front_end/sdk/DOMModel.js
|
| +++ b/Source/devtools/front_end/sdk/DOMModel.js
|
| @@ -456,12 +456,17 @@ WebInspector.DOMNode.prototype = {
|
| this._agent.removeNode(this.id, this._domModel._markRevision(this, callback));
|
| },
|
|
|
| - copyNode: function()
|
| + /**
|
| + * @param {function(?string)=} callback
|
| + */
|
| + copyNode: function(callback)
|
| {
|
| function copy(error, text)
|
| {
|
| if (!error)
|
| InspectorFrontendHost.copyText(text);
|
| + if (callback)
|
| + callback(error ? null : text);
|
| }
|
| this._agent.getOuterHTML(this.id, copy);
|
| },
|
| @@ -709,6 +714,16 @@ WebInspector.DOMNode.prototype = {
|
| * @param {?WebInspector.DOMNode} anchorNode
|
| * @param {function(?Protocol.Error, !DOMAgent.NodeId=)=} callback
|
| */
|
| + copyTo: function(targetNode, anchorNode, callback)
|
| + {
|
| + this._agent.copyTo(this.id, targetNode.id, anchorNode ? anchorNode.id : undefined, this._domModel._markRevision(this, callback));
|
| + },
|
| +
|
| + /**
|
| + * @param {!WebInspector.DOMNode} targetNode
|
| + * @param {?WebInspector.DOMNode} anchorNode
|
| + * @param {function(?Protocol.Error, !DOMAgent.NodeId=)=} callback
|
| + */
|
| moveTo: function(targetNode, anchorNode, callback)
|
| {
|
| this._agent.moveTo(this.id, targetNode.id, anchorNode ? anchorNode.id : undefined, this._domModel._markRevision(this, callback));
|
|
|