| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 */ | 141 */ |
| 142 _projectFilesMatchingFileQuery: function(project, searchConfig, dirtyOnly) | 142 _projectFilesMatchingFileQuery: function(project, searchConfig, dirtyOnly) |
| 143 { | 143 { |
| 144 var result = []; | 144 var result = []; |
| 145 var uiSourceCodes = project.uiSourceCodes(); | 145 var uiSourceCodes = project.uiSourceCodes(); |
| 146 for (var i = 0; i < uiSourceCodes.length; ++i) { | 146 for (var i = 0; i < uiSourceCodes.length; ++i) { |
| 147 var uiSourceCode = uiSourceCodes[i]; | 147 var uiSourceCode = uiSourceCodes[i]; |
| 148 if (dirtyOnly && !uiSourceCode.isDirty()) | 148 if (dirtyOnly && !uiSourceCode.isDirty()) |
| 149 continue; | 149 continue; |
| 150 if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDis
playName())) | 150 if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDis
playName())) |
| 151 result.push(uiSourceCode.path()); | 151 result.push(uiSourceCode.url()); |
| 152 } | 152 } |
| 153 result.sort(String.naturalOrderComparator); | 153 result.sort(String.naturalOrderComparator); |
| 154 return result; | 154 return result; |
| 155 }, | 155 }, |
| 156 | 156 |
| 157 /** | 157 /** |
| 158 * @param {number} searchId | 158 * @param {number} searchId |
| 159 * @param {!WebInspector.Project} project | 159 * @param {!WebInspector.Project} project |
| 160 * @param {!Array.<string>} filesMathingFileQuery | 160 * @param {!Array.<string>} filesMathingFileQuery |
| 161 * @param {function()} callback | 161 * @param {function()} callback |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 /** | 298 /** |
| 299 * @override | 299 * @override |
| 300 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 300 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 301 * @return {!WebInspector.FileBasedSearchResultsPane} | 301 * @return {!WebInspector.FileBasedSearchResultsPane} |
| 302 */ | 302 */ |
| 303 createSearchResultsPane: function(searchConfig) | 303 createSearchResultsPane: function(searchConfig) |
| 304 { | 304 { |
| 305 return new WebInspector.FileBasedSearchResultsPane(searchConfig); | 305 return new WebInspector.FileBasedSearchResultsPane(searchConfig); |
| 306 } | 306 } |
| 307 } | 307 } |
| OLD | NEW |