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

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

Issue 2205123003: DevTools: introduce view locations, allow opening views by id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 4 months 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 // 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698