| 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 10 matching lines...) Expand all Loading... |
| 21 this._searchResultsElement = this.contentElement.createChild("div"); | 21 this._searchResultsElement = this.contentElement.createChild("div"); |
| 22 this._searchResultsElement.className = "search-results"; | 22 this._searchResultsElement.className = "search-results"; |
| 23 | 23 |
| 24 this._search = this._searchPanelElement.createChild("input"); | 24 this._search = this._searchPanelElement.createChild("input"); |
| 25 this._search.placeholder = WebInspector.UIString("Search sources"); | 25 this._search.placeholder = WebInspector.UIString("Search sources"); |
| 26 this._search.setAttribute("type", "text"); | 26 this._search.setAttribute("type", "text"); |
| 27 this._search.classList.add("search-config-search"); | 27 this._search.classList.add("search-config-search"); |
| 28 this._search.setAttribute("results", "0"); | 28 this._search.setAttribute("results", "0"); |
| 29 this._search.setAttribute("size", 30); | 29 this._search.setAttribute("size", 30); |
| 30 | 30 |
| 31 this._ignoreCaseLabel = this._searchPanelElement.createChild("label"); | 31 this._ignoreCaseLabel = createCheckboxLabel(WebInspector.UIString("Ignore ca
se")); |
| 32 this._ignoreCaseLabel.classList.add("search-config-label"); | 32 this._ignoreCaseLabel.classList.add("search-config-label"); |
| 33 this._ignoreCaseCheckbox = this._ignoreCaseLabel.createChild("input"); | 33 this._searchPanelElement.appendChild(this._ignoreCaseLabel); |
| 34 this._ignoreCaseCheckbox.setAttribute("type", "checkbox"); | 34 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement; |
| 35 this._ignoreCaseCheckbox.classList.add("search-config-checkbox"); | 35 this._ignoreCaseCheckbox.classList.add("search-config-checkbox"); |
| 36 this._ignoreCaseLabel.createTextChild(WebInspector.UIString("Ignore case")); | |
| 37 | 36 |
| 38 this._regexLabel = this._searchPanelElement.createChild("label"); | 37 this._regexLabel = createCheckboxLabel(WebInspector.UIString("Regular expres
sion")); |
| 39 this._regexLabel.classList.add("search-config-label"); | 38 this._regexLabel.classList.add("search-config-label"); |
| 40 this._regexCheckbox = this._regexLabel.createChild("input"); | 39 this._searchPanelElement.appendChild(this._regexLabel); |
| 41 this._regexCheckbox.setAttribute("type", "checkbox"); | 40 this._regexCheckbox = this._regexLabel.checkboxElement; |
| 42 this._regexCheckbox.classList.add("search-config-checkbox"); | 41 this._regexCheckbox.classList.add("search-config-checkbox"); |
| 43 this._regexLabel.createTextChild(WebInspector.UIString("Regular expression")
); | |
| 44 | 42 |
| 45 this._searchStatusBarElement = this.contentElement.createChild("div", "searc
h-status-bar-summary"); | 43 this._searchStatusBarElement = this.contentElement.createChild("div", "searc
h-status-bar-summary"); |
| 46 this._searchMessageElement = this._searchStatusBarElement.createChild("div",
"search-message"); | 44 this._searchMessageElement = this._searchStatusBarElement.createChild("div",
"search-message"); |
| 47 this._searchProgressPlaceholderElement = this._searchStatusBarElement.create
Child("div", "flex-centered"); | 45 this._searchProgressPlaceholderElement = this._searchStatusBarElement.create
Child("div", "flex-centered"); |
| 48 this._searchStatusBarElement.createChild("div", "search-message-spacer"); | 46 this._searchStatusBarElement.createChild("div", "search-message-spacer"); |
| 49 this._searchResultsMessageElement = this._searchStatusBarElement.createChild
("div", "search-message"); | 47 this._searchResultsMessageElement = this._searchStatusBarElement.createChild
("div", "search-message"); |
| 50 | 48 |
| 51 WebInspector.settings.advancedSearchConfig = WebInspector.settings.createSet
ting("advancedSearchConfig", new WebInspector.SearchConfig("", true, false).toPl
ainObject()); | 49 WebInspector.settings.advancedSearchConfig = WebInspector.settings.createSet
ting("advancedSearchConfig", new WebInspector.SearchConfig("", true, false).toPl
ainObject()); |
| 52 this._load(); | 50 this._load(); |
| 53 WebInspector.AdvancedSearchView._instance = this; | 51 WebInspector.AdvancedSearchView._instance = this; |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 performIndexing: function(progress, callback) { }, | 412 performIndexing: function(progress, callback) { }, |
| 415 | 413 |
| 416 stopSearch: function() { }, | 414 stopSearch: function() { }, |
| 417 | 415 |
| 418 /** | 416 /** |
| 419 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 417 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 420 * @return {!WebInspector.SearchResultsPane} | 418 * @return {!WebInspector.SearchResultsPane} |
| 421 */ | 419 */ |
| 422 createSearchResultsPane: function(searchConfig) { } | 420 createSearchResultsPane: function(searchConfig) { } |
| 423 } | 421 } |
| OLD | NEW |