| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.AdvancedSearchView = function() | 9 WebInspector.AdvancedSearchView = function() |
| 10 { | 10 { |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 __proto__: WebInspector.VBox.prototype | 344 __proto__: WebInspector.VBox.prototype |
| 345 } | 345 } |
| 346 | 346 |
| 347 /** | 347 /** |
| 348 * @param {string} query | 348 * @param {string} query |
| 349 * @param {string=} filePath | 349 * @param {string=} filePath |
| 350 */ | 350 */ |
| 351 WebInspector.AdvancedSearchView.openSearch = function(query, filePath) | 351 WebInspector.AdvancedSearchView.openSearch = function(query, filePath) |
| 352 { | 352 { |
| 353 WebInspector.inspectorView.showViewInDrawer("sources.search"); | 353 WebInspector.viewManager.showView("sources.search"); |
| 354 var searchView = /** @type {!WebInspector.AdvancedSearchView} */ (self.runti
me.sharedInstance(WebInspector.AdvancedSearchView)); | 354 var searchView = /** @type {!WebInspector.AdvancedSearchView} */ (self.runti
me.sharedInstance(WebInspector.AdvancedSearchView)); |
| 355 var fileMask = filePath ? " file:" + filePath : ""; | 355 var fileMask = filePath ? " file:" + filePath : ""; |
| 356 searchView._toggle(query + fileMask); | 356 searchView._toggle(query + fileMask); |
| 357 } | 357 } |
| 358 | 358 |
| 359 /** | 359 /** |
| 360 * @constructor | 360 * @constructor |
| 361 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 361 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 362 */ | 362 */ |
| 363 WebInspector.SearchResultsPane = function(searchConfig) | 363 WebInspector.SearchResultsPane = function(searchConfig) |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 performIndexing: function(progress) { }, | 444 performIndexing: function(progress) { }, |
| 445 | 445 |
| 446 stopSearch: function() { }, | 446 stopSearch: function() { }, |
| 447 | 447 |
| 448 /** | 448 /** |
| 449 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 449 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 450 * @return {!WebInspector.SearchResultsPane} | 450 * @return {!WebInspector.SearchResultsPane} |
| 451 */ | 451 */ |
| 452 createSearchResultsPane: function(searchConfig) { } | 452 createSearchResultsPane: function(searchConfig) { } |
| 453 } | 453 } |
| OLD | NEW |