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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 else | 223 else |
224 uiSourceCode.checkContentUpdated(true, contentUpdated.bind(this,
uiSourceCode)); | 224 uiSourceCode.checkContentUpdated(true, contentUpdated.bind(this,
uiSourceCode)); |
225 } | 225 } |
226 | 226 |
227 /** | 227 /** |
228 * @param {!WebInspector.UISourceCode} uiSourceCode | 228 * @param {!WebInspector.UISourceCode} uiSourceCode |
229 * @this {WebInspector.SourcesSearchScope} | 229 * @this {WebInspector.SourcesSearchScope} |
230 */ | 230 */ |
231 function contentUpdated(uiSourceCode) | 231 function contentUpdated(uiSourceCode) |
232 { | 232 { |
233 uiSourceCode.requestContent(contentLoaded.bind(this, uiSourceCode)); | 233 uiSourceCode.requestContent().then(contentLoaded.bind(this, uiSource
Code)); |
234 } | 234 } |
235 | 235 |
236 /** | 236 /** |
237 * @this {WebInspector.SourcesSearchScope} | 237 * @this {WebInspector.SourcesSearchScope} |
238 */ | 238 */ |
239 function scheduleSearchInNextFileOrFinish() | 239 function scheduleSearchInNextFileOrFinish() |
240 { | 240 { |
241 if (fileIndex >= files.length) { | 241 if (fileIndex >= files.length) { |
242 if (!callbacksLeft) { | 242 if (!callbacksLeft) { |
243 progress.done(); | 243 progress.done(); |
(...skipping 54 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 |