Chromium Code Reviews| Index: Source/devtools/front_end/Workspace.js |
| diff --git a/Source/devtools/front_end/Workspace.js b/Source/devtools/front_end/Workspace.js |
| index 64aaf804e4591b0ee93f11e9ca41b6874f520297..ad3c96a676dd033cb10f62c54b8255ad3c6f267c 100644 |
| --- a/Source/devtools/front_end/Workspace.js |
| +++ b/Source/devtools/front_end/Workspace.js |
| @@ -113,6 +113,18 @@ WebInspector.ProjectDelegate.prototype = { |
| setFileContent: function(path, newContent, callback) { }, |
| /** |
| + * @return {boolean} |
| + */ |
| + canRename: function() { }, |
| + |
| + /** |
| + * @param {Array.<string>} path |
| + * @param {string} newName |
| + * @param {function(boolean, string=)} callback |
| + */ |
| + rename: function(path, newName, callback) { }, |
| + |
| + /** |
| * @param {Array.<string>} path |
| * @param {string} query |
| * @param {boolean} caseSensitive |
| @@ -267,6 +279,24 @@ WebInspector.Project.prototype = { |
| }, |
| /** |
| + * @return {boolean} |
|
apavlov
2013/05/15 14:37:32
@override
|
| + */ |
| + canRename: function() |
| + { |
| + return this._projectDelegate.canRename(); |
| + }, |
| + |
| + /** |
| + * @param {WebInspector.UISourceCode} uiSourceCode |
|
apavlov
2013/05/15 14:37:32
@override
|
| + * @param {string} newName |
| + * @param {function(boolean, string=)} callback |
| + */ |
| + rename: function(uiSourceCode, newName, callback) |
| + { |
| + this._projectDelegate.rename(uiSourceCode.path(), newName, callback); |
| + }, |
| + |
| + /** |
| * @param {WebInspector.UISourceCode} uiSourceCode |
| * @param {string} query |
| * @param {boolean} caseSensitive |