| 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 searchInPath: function(query, progress, callback) | 657 searchInPath: function(query, progress, callback) |
| 658 { | 658 { |
| 659 var requestId = this._manager.registerCallback(innerCallback); | 659 var requestId = this._manager.registerCallback(innerCallback); |
| 660 InspectorFrontendHost.searchInPath(requestId, this._embedderPath, query)
; | 660 InspectorFrontendHost.searchInPath(requestId, this._embedderPath, query)
; |
| 661 | 661 |
| 662 /** | 662 /** |
| 663 * @param {!Array.<string>} files | 663 * @param {!Array.<string>} files |
| 664 */ | 664 */ |
| 665 function innerCallback(files) | 665 function innerCallback(files) |
| 666 { | 666 { |
| 667 files = files.map(embedderPath => WebInspector.IsolatedFileSystemMan
ager.normalizePath(embedderPath)); | 667 files = files.map(embedderPath => WebInspector.ParsedURL.platformPat
hToURL(embedderPath)); |
| 668 progress.worked(1); | 668 progress.worked(1); |
| 669 callback(files); | 669 callback(files); |
| 670 } | 670 } |
| 671 }, | 671 }, |
| 672 | 672 |
| 673 /** | 673 /** |
| 674 * @param {!WebInspector.Progress} progress | 674 * @param {!WebInspector.Progress} progress |
| 675 */ | 675 */ |
| 676 indexContent: function(progress) | 676 indexContent: function(progress) |
| 677 { | 677 { |
| 678 progress.setTotalWork(1); | 678 progress.setTotalWork(1); |
| 679 var requestId = this._manager.registerProgress(progress); | 679 var requestId = this._manager.registerProgress(progress); |
| 680 InspectorFrontendHost.indexPath(requestId, this._embedderPath); | 680 InspectorFrontendHost.indexPath(requestId, this._embedderPath); |
| 681 } | 681 } |
| 682 } | 682 } |
| OLD | NEW |