| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 138 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 139 * @param {boolean=} dirtyOnly | 139 * @param {boolean=} dirtyOnly |
| 140 * @return {!Array.<string>} | 140 * @return {!Array.<string>} |
| 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 var binding = WebInspector.persistence.binding(uiSourceCode); |
| 149 if (binding && binding.persistent === uiSourceCode) |
| 150 continue; |
| 148 if (dirtyOnly && !uiSourceCode.isDirty()) | 151 if (dirtyOnly && !uiSourceCode.isDirty()) |
| 149 continue; | 152 continue; |
| 150 if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDis
playName())) | 153 if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDis
playName())) |
| 151 result.push(uiSourceCode.url()); | 154 result.push(uiSourceCode.url()); |
| 152 } | 155 } |
| 153 result.sort(String.naturalOrderComparator); | 156 result.sort(String.naturalOrderComparator); |
| 154 return result; | 157 return result; |
| 155 }, | 158 }, |
| 156 | 159 |
| 157 /** | 160 /** |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 /** | 305 /** |
| 303 * @override | 306 * @override |
| 304 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 307 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 305 * @return {!WebInspector.FileBasedSearchResultsPane} | 308 * @return {!WebInspector.FileBasedSearchResultsPane} |
| 306 */ | 309 */ |
| 307 createSearchResultsPane: function(searchConfig) | 310 createSearchResultsPane: function(searchConfig) |
| 308 { | 311 { |
| 309 return new WebInspector.FileBasedSearchResultsPane(searchConfig); | 312 return new WebInspector.FileBasedSearchResultsPane(searchConfig); |
| 310 } | 313 } |
| 311 } | 314 } |
| OLD | NEW |