Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js

Issue 2551233002: DevTools: show filesystem file by default (Closed)
Patch Set: nit Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 * @param {!Workspace.ProjectSearchConfig} searchConfig 133 * @param {!Workspace.ProjectSearchConfig} searchConfig
134 * @param {boolean=} dirtyOnly 134 * @param {boolean=} dirtyOnly
135 * @return {!Array.<string>} 135 * @return {!Array.<string>}
136 */ 136 */
137 _projectFilesMatchingFileQuery(project, searchConfig, dirtyOnly) { 137 _projectFilesMatchingFileQuery(project, searchConfig, dirtyOnly) {
138 var result = []; 138 var result = [];
139 var uiSourceCodes = project.uiSourceCodes(); 139 var uiSourceCodes = project.uiSourceCodes();
140 for (var i = 0; i < uiSourceCodes.length; ++i) { 140 for (var i = 0; i < uiSourceCodes.length; ++i) {
141 var uiSourceCode = uiSourceCodes[i]; 141 var uiSourceCode = uiSourceCodes[i];
142 var binding = Persistence.persistence.binding(uiSourceCode); 142 var binding = Persistence.persistence.binding(uiSourceCode);
143 if (binding && binding.fileSystem === uiSourceCode) 143 if (binding && binding.network === uiSourceCode)
144 continue; 144 continue;
145 if (dirtyOnly && !uiSourceCode.isDirty()) 145 if (dirtyOnly && !uiSourceCode.isDirty())
146 continue; 146 continue;
147 if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDisplayNa me())) 147 if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDisplayNa me()))
148 result.push(uiSourceCode.url()); 148 result.push(uiSourceCode.url());
149 } 149 }
150 result.sort(String.naturalOrderComparator); 150 result.sort(String.naturalOrderComparator);
151 return result; 151 return result;
152 } 152 }
153 153
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 /** 293 /**
294 * @override 294 * @override
295 * @param {!Workspace.ProjectSearchConfig} searchConfig 295 * @param {!Workspace.ProjectSearchConfig} searchConfig
296 * @return {!Sources.FileBasedSearchResultsPane} 296 * @return {!Sources.FileBasedSearchResultsPane}
297 */ 297 */
298 createSearchResultsPane(searchConfig) { 298 createSearchResultsPane(searchConfig) {
299 return new Sources.FileBasedSearchResultsPane(searchConfig); 299 return new Sources.FileBasedSearchResultsPane(searchConfig);
300 } 300 }
301 }; 301 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698