OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 canSetFileContent: function() { }, | 106 canSetFileContent: function() { }, |
107 | 107 |
108 /** | 108 /** |
109 * @param {Array.<string>} path | 109 * @param {Array.<string>} path |
110 * @param {string} newContent | 110 * @param {string} newContent |
111 * @param {function(?string)} callback | 111 * @param {function(?string)} callback |
112 */ | 112 */ |
113 setFileContent: function(path, newContent, callback) { }, | 113 setFileContent: function(path, newContent, callback) { }, |
114 | 114 |
115 /** | 115 /** |
116 * @return {boolean} | |
117 */ | |
118 canRename: function() { }, | |
119 | |
120 /** | |
121 * @param {Array.<string>} path | |
122 * @param {string} newName | |
123 * @param {function(boolean, string=)} callback | |
124 */ | |
125 rename: function(path, newName, callback) { }, | |
126 | |
127 /** | |
116 * @param {Array.<string>} path | 128 * @param {Array.<string>} path |
117 * @param {string} query | 129 * @param {string} query |
118 * @param {boolean} caseSensitive | 130 * @param {boolean} caseSensitive |
119 * @param {boolean} isRegex | 131 * @param {boolean} isRegex |
120 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb ack | 132 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb ack |
121 */ | 133 */ |
122 searchInFileContent: function(path, query, caseSensitive, isRegex, callback) { } | 134 searchInFileContent: function(path, query, caseSensitive, isRegex, callback) { } |
123 } | 135 } |
124 | 136 |
125 /** | 137 /** |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 * @param {string} newContent | 272 * @param {string} newContent |
261 * @param {function(?string)} callback | 273 * @param {function(?string)} callback |
262 */ | 274 */ |
263 setFileContent: function(uiSourceCode, newContent, callback) | 275 setFileContent: function(uiSourceCode, newContent, callback) |
264 { | 276 { |
265 this._projectDelegate.setFileContent(uiSourceCode.path(), newContent, ca llback); | 277 this._projectDelegate.setFileContent(uiSourceCode.path(), newContent, ca llback); |
266 this._workspace.dispatchEventToListeners(WebInspector.Workspace.Events.U ISourceCodeContentCommitted, { uiSourceCode: uiSourceCode, content: newContent } ); | 278 this._workspace.dispatchEventToListeners(WebInspector.Workspace.Events.U ISourceCodeContentCommitted, { uiSourceCode: uiSourceCode, content: newContent } ); |
267 }, | 279 }, |
268 | 280 |
269 /** | 281 /** |
282 * @return {boolean} | |
apavlov
2013/05/15 14:37:32
@override
| |
283 */ | |
284 canRename: function() | |
285 { | |
286 return this._projectDelegate.canRename(); | |
287 }, | |
288 | |
289 /** | |
290 * @param {WebInspector.UISourceCode} uiSourceCode | |
apavlov
2013/05/15 14:37:32
@override
| |
291 * @param {string} newName | |
292 * @param {function(boolean, string=)} callback | |
293 */ | |
294 rename: function(uiSourceCode, newName, callback) | |
295 { | |
296 this._projectDelegate.rename(uiSourceCode.path(), newName, callback); | |
297 }, | |
298 | |
299 /** | |
270 * @param {WebInspector.UISourceCode} uiSourceCode | 300 * @param {WebInspector.UISourceCode} uiSourceCode |
271 * @param {string} query | 301 * @param {string} query |
272 * @param {boolean} caseSensitive | 302 * @param {boolean} caseSensitive |
273 * @param {boolean} isRegex | 303 * @param {boolean} isRegex |
274 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb ack | 304 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb ack |
275 */ | 305 */ |
276 searchInFileContent: function(uiSourceCode, query, caseSensitive, isRegex, c allback) | 306 searchInFileContent: function(uiSourceCode, query, caseSensitive, isRegex, c allback) |
277 { | 307 { |
278 this._projectDelegate.searchInFileContent(uiSourceCode.path(), query, ca seSensitive, isRegex, callback); | 308 this._projectDelegate.searchInFileContent(uiSourceCode.path(), query, ca seSensitive, isRegex, callback); |
279 }, | 309 }, |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
516 WebInspector.suggestReload(); | 546 WebInspector.suggestReload(); |
517 }, | 547 }, |
518 | 548 |
519 __proto__: WebInspector.Object.prototype | 549 __proto__: WebInspector.Object.prototype |
520 } | 550 } |
521 | 551 |
522 /** | 552 /** |
523 * @type {?WebInspector.Workspace} | 553 * @type {?WebInspector.Workspace} |
524 */ | 554 */ |
525 WebInspector.workspace = null; | 555 WebInspector.workspace = null; |
OLD | NEW |