| 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 { |
| 11 WebInspector.VBox.call(this, true); | 11 WebInspector.VBox.call(this, true); |
| 12 this.setMinimumSize(0, 40); | 12 this.setMinimumSize(0, 40); |
| 13 this.registerRequiredCSS("sources/sourcesSearch.css"); | 13 this.registerRequiredCSS("sources/sourcesSearch.css"); |
| 14 | 14 |
| 15 this._searchId = 0; | 15 this._searchId = 0; |
| 16 | 16 |
| 17 this.contentElement.classList.add("search-view"); | 17 this.contentElement.classList.add("search-view"); |
| 18 | 18 |
| 19 this._searchPanelElement = this.contentElement.createChild("div", "search-dr
awer-header"); | 19 this._searchPanelElement = this.contentElement.createChild("div", "search-dr
awer-header"); |
| 20 this._searchPanelElement.addEventListener("keydown", this._onKeyDown.bind(th
is), false); | 20 this._searchPanelElement.addEventListener("keydown", this._onKeyDown.bind(th
is), false); |
| 21 | 21 |
| 22 this._searchResultsElement = this.contentElement.createChild("div"); | 22 this._searchResultsElement = this.contentElement.createChild("div"); |
| 23 this._searchResultsElement.className = "search-results"; | 23 this._searchResultsElement.className = "search-results"; |
| 24 | 24 |
| 25 this._search = WebInspector.HistoryInput.create(); | 25 this._search = WebInspector.HistoryInput.create(); |
| 26 this._searchPanelElement.appendChild(this._search); | 26 this._searchPanelElement.appendChild(this._search); |
| 27 this._search.placeholder = WebInspector.UIString("Use 'file:' to define sear
ch scope"); | 27 this._search.placeholder = WebInspector.UIString("Enter query, use `file:` t
o filter by path"); |
| 28 this._search.setAttribute("type", "text"); | 28 this._search.setAttribute("type", "text"); |
| 29 this._search.classList.add("search-config-search"); | 29 this._search.classList.add("search-config-search"); |
| 30 this._search.setAttribute("results", "0"); | 30 this._search.setAttribute("results", "0"); |
| 31 this._search.setAttribute("size", 30); | 31 this._search.setAttribute("size", 30); |
| 32 | 32 |
| 33 this._ignoreCaseLabel = createCheckboxLabel(WebInspector.UIString("Ignore ca
se")); | 33 this._ignoreCaseLabel = createCheckboxLabel(WebInspector.UIString("Ignore ca
se")); |
| 34 this._ignoreCaseLabel.classList.add("search-config-label"); | 34 this._ignoreCaseLabel.classList.add("search-config-label"); |
| 35 this._searchPanelElement.appendChild(this._ignoreCaseLabel); | 35 this._searchPanelElement.appendChild(this._ignoreCaseLabel); |
| 36 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement; | 36 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement; |
| 37 this._ignoreCaseCheckbox.classList.add("search-config-checkbox"); | 37 this._ignoreCaseCheckbox.classList.add("search-config-checkbox"); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 performIndexing: function(progress) { }, | 398 performIndexing: function(progress) { }, |
| 399 | 399 |
| 400 stopSearch: function() { }, | 400 stopSearch: function() { }, |
| 401 | 401 |
| 402 /** | 402 /** |
| 403 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 403 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 404 * @return {!WebInspector.SearchResultsPane} | 404 * @return {!WebInspector.SearchResultsPane} |
| 405 */ | 405 */ |
| 406 createSearchResultsPane: function(searchConfig) { } | 406 createSearchResultsPane: function(searchConfig) { } |
| 407 } | 407 } |
| OLD | NEW |