| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 /** | 216 /** |
| 217 * @param {!Array.<string>} queries | 217 * @param {!Array.<string>} queries |
| 218 * @param {!Array.<string>} fileQueries | 218 * @param {!Array.<string>} fileQueries |
| 219 * @param {boolean} caseSensitive | 219 * @param {boolean} caseSensitive |
| 220 * @param {boolean} isRegex | 220 * @param {boolean} isRegex |
| 221 * @param {!WebInspector.Progress} progress | 221 * @param {!WebInspector.Progress} progress |
| 222 * @param {function(!Array.<string>)} callback | 222 * @param {function(!Array.<string>)} callback |
| 223 */ | 223 */ |
| 224 findFilesMatchingSearchRequest: function(queries, fileQueries, caseSensitive
, isRegex, progress, callback) | 224 findFilesMatchingSearchRequest: function(queries, fileQueries, caseSensitive
, isRegex, progress, callback) |
| 225 { | 225 { |
| 226 var result = []; | 226 var result = null; |
| 227 var queriesToRun = queries.slice(); | 227 var queriesToRun = queries.slice(); |
| 228 if (!queriesToRun.length) | 228 if (!queriesToRun.length) |
| 229 queriesToRun.push(""); | 229 queriesToRun.push(""); |
| 230 progress.setTotalWork(queriesToRun.length); | 230 progress.setTotalWork(queriesToRun.length); |
| 231 searchNextQuery.call(this); | 231 searchNextQuery.call(this); |
| 232 | 232 |
| 233 /** | 233 /** |
| 234 * @this {WebInspector.FileSystemProjectDelegate} | 234 * @this {WebInspector.FileSystemProjectDelegate} |
| 235 */ | 235 */ |
| 236 function searchNextQuery() | 236 function searchNextQuery() |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 */ | 524 */ |
| 525 _removeFile: function(path) | 525 _removeFile: function(path) |
| 526 { | 526 { |
| 527 this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.FileRe
moved, path); | 527 this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.FileRe
moved, path); |
| 528 }, | 528 }, |
| 529 | 529 |
| 530 reset: function() | 530 reset: function() |
| 531 { | 531 { |
| 532 this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.Reset,
null); | 532 this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.Reset,
null); |
| 533 }, | 533 }, |
| 534 | 534 |
| 535 __proto__: WebInspector.Object.prototype | 535 __proto__: WebInspector.Object.prototype |
| 536 } | 536 } |
| 537 | 537 |
| 538 /** | 538 /** |
| 539 * @type {!WebInspector.FileSystemProjectDelegate} | 539 * @type {!WebInspector.FileSystemProjectDelegate} |
| 540 */ | 540 */ |
| 541 WebInspector.fileSystemProjectDelegate; | 541 WebInspector.fileSystemProjectDelegate; |
| 542 | 542 |
| 543 /** | 543 /** |
| 544 * @constructor | 544 * @constructor |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 { | 598 { |
| 599 var projectId = WebInspector.FileSystemProjectDelegate.projectId(fileSys
temPath); | 599 var projectId = WebInspector.FileSystemProjectDelegate.projectId(fileSys
temPath); |
| 600 return this._projectDelegates[projectId]; | 600 return this._projectDelegates[projectId]; |
| 601 } | 601 } |
| 602 } | 602 } |
| 603 | 603 |
| 604 /** | 604 /** |
| 605 * @type {!WebInspector.FileSystemWorkspaceProvider} | 605 * @type {!WebInspector.FileSystemWorkspaceProvider} |
| 606 */ | 606 */ |
| 607 WebInspector.fileSystemWorkspaceProvider; | 607 WebInspector.fileSystemWorkspaceProvider; |
| OLD | NEW |