| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 files.sort(String.naturalOrderComparator); | 171 files.sort(String.naturalOrderComparator); |
| 172 files = files.intersectOrdered(filesMathingFileQuery, String.naturalOrde
rComparator); | 172 files = files.intersectOrdered(filesMathingFileQuery, String.naturalOrde
rComparator); |
| 173 var dirtyFiles = this._projectFilesMatchingFileQuery(project, this._sear
chConfig, true); | 173 var dirtyFiles = this._projectFilesMatchingFileQuery(project, this._sear
chConfig, true); |
| 174 files = files.mergeOrdered(dirtyFiles, String.naturalOrderComparator); | 174 files = files.mergeOrdered(dirtyFiles, String.naturalOrderComparator); |
| 175 | 175 |
| 176 var uiSourceCodes = []; | 176 var uiSourceCodes = []; |
| 177 for (var i = 0; i < files.length; ++i) { | 177 for (var i = 0; i < files.length; ++i) { |
| 178 var uiSourceCode = project.uiSourceCodeForURL(files[i]); | 178 var uiSourceCode = project.uiSourceCodeForURL(files[i]); |
| 179 if (uiSourceCode) { | 179 if (uiSourceCode) { |
| 180 var script = WebInspector.DefaultScriptMapping.scriptForUISource
Code(uiSourceCode); | 180 var script = WebInspector.DefaultScriptMapping.scriptForUISource
Code(uiSourceCode); |
| 181 if (script && (script.isInternalScript() || !script.isAnonymousS
cript())) | 181 if (script && !script.isAnonymousScript()) |
| 182 continue; | 182 continue; |
| 183 uiSourceCodes.push(uiSourceCode); | 183 uiSourceCodes.push(uiSourceCode); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 uiSourceCodes.sort(WebInspector.SourcesSearchScope._filesComparator); | 186 uiSourceCodes.sort(WebInspector.SourcesSearchScope._filesComparator); |
| 187 this._searchResultCandidates = this._searchResultCandidates.mergeOrdered
(uiSourceCodes, WebInspector.SourcesSearchScope._filesComparator); | 187 this._searchResultCandidates = this._searchResultCandidates.mergeOrdered
(uiSourceCodes, WebInspector.SourcesSearchScope._filesComparator); |
| 188 callback(); | 188 callback(); |
| 189 }, | 189 }, |
| 190 | 190 |
| 191 /** | 191 /** |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 /** | 302 /** |
| 303 * @override | 303 * @override |
| 304 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 304 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 305 * @return {!WebInspector.FileBasedSearchResultsPane} | 305 * @return {!WebInspector.FileBasedSearchResultsPane} |
| 306 */ | 306 */ |
| 307 createSearchResultsPane: function(searchConfig) | 307 createSearchResultsPane: function(searchConfig) |
| 308 { | 308 { |
| 309 return new WebInspector.FileBasedSearchResultsPane(searchConfig); | 309 return new WebInspector.FileBasedSearchResultsPane(searchConfig); |
| 310 } | 310 } |
| 311 } | 311 } |
| OLD | NEW |