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 29 matching lines...) Expand all Loading... |
40 this._searchPanelElement.appendChild(this._regexLabel); | 40 this._searchPanelElement.appendChild(this._regexLabel); |
41 this._regexCheckbox = this._regexLabel.checkboxElement; | 41 this._regexCheckbox = this._regexLabel.checkboxElement; |
42 this._regexCheckbox.classList.add("search-config-checkbox"); | 42 this._regexCheckbox.classList.add("search-config-checkbox"); |
43 | 43 |
44 this._searchStatusBarElement = this.contentElement.createChild("div", "searc
h-status-bar-summary"); | 44 this._searchStatusBarElement = this.contentElement.createChild("div", "searc
h-status-bar-summary"); |
45 this._searchMessageElement = this._searchStatusBarElement.createChild("div",
"search-message"); | 45 this._searchMessageElement = this._searchStatusBarElement.createChild("div",
"search-message"); |
46 this._searchProgressPlaceholderElement = this._searchStatusBarElement.create
Child("div", "flex-centered"); | 46 this._searchProgressPlaceholderElement = this._searchStatusBarElement.create
Child("div", "flex-centered"); |
47 this._searchStatusBarElement.createChild("div", "search-message-spacer"); | 47 this._searchStatusBarElement.createChild("div", "search-message-spacer"); |
48 this._searchResultsMessageElement = this._searchStatusBarElement.createChild
("div", "search-message"); | 48 this._searchResultsMessageElement = this._searchStatusBarElement.createChild
("div", "search-message"); |
49 | 49 |
50 this._advancedSearchConfig = WebInspector.settings.createSetting("advancedSe
archConfig", new WebInspector.SearchConfig("", true, false).toPlainObject()); | 50 this._advancedSearchConfig = WebInspector.settings.createLocalSetting("advan
cedSearchConfig", new WebInspector.SearchConfig("", true, false).toPlainObject()
); |
51 this._load(); | 51 this._load(); |
52 WebInspector.AdvancedSearchView._instance = this; | 52 WebInspector.AdvancedSearchView._instance = this; |
53 /** @type {!WebInspector.SearchScope} */ | 53 /** @type {!WebInspector.SearchScope} */ |
54 this._searchScope = new WebInspector.SourcesSearchScope(); | 54 this._searchScope = new WebInspector.SourcesSearchScope(); |
55 if (WebInspector.AdvancedSearchView._pendingQuery !== undefined) { | 55 if (WebInspector.AdvancedSearchView._pendingQuery !== undefined) { |
56 this._toggle(WebInspector.AdvancedSearchView._pendingQuery); | 56 this._toggle(WebInspector.AdvancedSearchView._pendingQuery); |
57 delete WebInspector.AdvancedSearchView._pendingQuery; | 57 delete WebInspector.AdvancedSearchView._pendingQuery; |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 performIndexing: function(progress, callback) { }, | 411 performIndexing: function(progress, callback) { }, |
412 | 412 |
413 stopSearch: function() { }, | 413 stopSearch: function() { }, |
414 | 414 |
415 /** | 415 /** |
416 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 416 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
417 * @return {!WebInspector.SearchResultsPane} | 417 * @return {!WebInspector.SearchResultsPane} |
418 */ | 418 */ |
419 createSearchResultsPane: function(searchConfig) { } | 419 createSearchResultsPane: function(searchConfig) { } |
420 } | 420 } |
OLD | NEW |