OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 * @param {string} newContent | 123 * @param {string} newContent |
124 * @param {function(?string)} callback | 124 * @param {function(?string)} callback |
125 */ | 125 */ |
126 setFileContent: function(path, newContent, callback) | 126 setFileContent: function(path, newContent, callback) |
127 { | 127 { |
128 var filePath = this._filePathForPath(path); | 128 var filePath = this._filePathForPath(path); |
129 this._fileSystem.setFileContent(filePath, newContent, callback.bind(this
, "")); | 129 this._fileSystem.setFileContent(filePath, newContent, callback.bind(this
, "")); |
130 }, | 130 }, |
131 | 131 |
132 /** | 132 /** |
| 133 * @return {boolean} |
| 134 */ |
| 135 canRename: function() |
| 136 { |
| 137 return false; |
| 138 }, |
| 139 |
| 140 /** |
| 141 * @param {Array.<string>} path |
| 142 * @param {string} newName |
| 143 * @param {function(boolean, string=)} callback |
| 144 */ |
| 145 rename: function(path, newName, callback) |
| 146 { |
| 147 callback(false); |
| 148 }, |
| 149 |
| 150 /** |
133 * @param {Array.<string>} path | 151 * @param {Array.<string>} path |
134 * @param {string} query | 152 * @param {string} query |
135 * @param {boolean} caseSensitive | 153 * @param {boolean} caseSensitive |
136 * @param {boolean} isRegex | 154 * @param {boolean} isRegex |
137 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb
ack | 155 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb
ack |
138 */ | 156 */ |
139 searchInFileContent: function(path, query, caseSensitive, isRegex, callback) | 157 searchInFileContent: function(path, query, caseSensitive, isRegex, callback) |
140 { | 158 { |
141 var filePath = this._filePathForPath(path); | 159 var filePath = this._filePathForPath(path); |
142 this._fileSystem.requestFileContent(filePath, contentCallback.bind(this)
); | 160 this._fileSystem.requestFileContent(filePath, contentCallback.bind(this)
); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 { | 285 { |
268 var projectDelegate = this._simpleProjectDelegates[uiSourceCode.project(
).id()]; | 286 var projectDelegate = this._simpleProjectDelegates[uiSourceCode.project(
).id()]; |
269 return projectDelegate.fileSystemPath(); | 287 return projectDelegate.fileSystemPath(); |
270 } | 288 } |
271 } | 289 } |
272 | 290 |
273 /** | 291 /** |
274 * @type {?WebInspector.FileSystemWorkspaceProvider} | 292 * @type {?WebInspector.FileSystemWorkspaceProvider} |
275 */ | 293 */ |
276 WebInspector.fileSystemWorkspaceProvider = null; | 294 WebInspector.fileSystemWorkspaceProvider = null; |
OLD | NEW |