| 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 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Sources.AdvancedSearchView = class extends UI.VBox { | 7 Sources.AdvancedSearchView = class extends UI.VBox { |
| 8 constructor() { | 8 constructor() { |
| 9 super(true); | 9 super(true); |
| 10 this.setMinimumSize(0, 40); | 10 this.setMinimumSize(0, 40); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 this._searchResultsElement.className = 'search-results'; | 22 this._searchResultsElement.className = 'search-results'; |
| 23 | 23 |
| 24 this._search = UI.HistoryInput.create(); | 24 this._search = UI.HistoryInput.create(); |
| 25 this._searchPanelElement.appendChild(this._search); | 25 this._searchPanelElement.appendChild(this._search); |
| 26 this._search.placeholder = Common.UIString('Search all sources (use "file:"
to filter by path)\u200e'); | 26 this._search.placeholder = Common.UIString('Search all sources (use "file:"
to filter by path)\u200e'); |
| 27 this._search.setAttribute('type', 'text'); | 27 this._search.setAttribute('type', 'text'); |
| 28 this._search.classList.add('search-config-search'); | 28 this._search.classList.add('search-config-search'); |
| 29 this._search.setAttribute('results', '0'); | 29 this._search.setAttribute('results', '0'); |
| 30 this._search.setAttribute('size', 42); | 30 this._search.setAttribute('size', 42); |
| 31 | 31 |
| 32 var searchIcon = UI.Icon.create('smallicon-search', 'search-icon'); | 32 var searchIcon = UI.Icon.create('mediumicon-search', 'search-icon'); |
| 33 this._searchPanelElement.appendChild(searchIcon); | 33 this._searchPanelElement.appendChild(searchIcon); |
| 34 | 34 |
| 35 this._searchInputClearElement = UI.Icon.create('smallicon-gray-cross-hover',
'search-cancel-button'); | 35 this._searchInputClearElement = UI.Icon.create('mediumicon-gray-cross-hover'
, 'search-cancel-button'); |
| 36 this._searchInputClearElement.classList.add('hidden'); | 36 this._searchInputClearElement.classList.add('hidden'); |
| 37 this._searchInputClearElement.addEventListener('click', this._onSearchInputC
lear.bind(this), false); | 37 this._searchInputClearElement.addEventListener('click', this._onSearchInputC
lear.bind(this), false); |
| 38 var cancelButtonContainer = this._searchPanelElement.createChild('div', 'sea
rch-cancel-button-container'); | 38 var cancelButtonContainer = this._searchPanelElement.createChild('div', 'sea
rch-cancel-button-container'); |
| 39 cancelButtonContainer.appendChild(this._searchInputClearElement); | 39 cancelButtonContainer.appendChild(this._searchInputClearElement); |
| 40 | 40 |
| 41 this._ignoreCaseLabel = UI.createCheckboxLabel(Common.UIString('Ignore case'
)); | 41 this._ignoreCaseLabel = UI.createCheckboxLabel(Common.UIString('Ignore case'
)); |
| 42 this._ignoreCaseLabel.classList.add('search-config-label'); | 42 this._ignoreCaseLabel.classList.add('search-config-label'); |
| 43 this._searchPanelElement.appendChild(this._ignoreCaseLabel); | 43 this._searchPanelElement.appendChild(this._ignoreCaseLabel); |
| 44 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement; | 44 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement; |
| 45 this._ignoreCaseCheckbox.classList.add('search-config-checkbox'); | 45 this._ignoreCaseCheckbox.classList.add('search-config-checkbox'); |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 */ | 430 */ |
| 431 performSearch(searchConfig, progress, searchResultCallback, searchFinishedCall
back) {}, | 431 performSearch(searchConfig, progress, searchResultCallback, searchFinishedCall
back) {}, |
| 432 | 432 |
| 433 /** | 433 /** |
| 434 * @param {!Common.Progress} progress | 434 * @param {!Common.Progress} progress |
| 435 */ | 435 */ |
| 436 performIndexing(progress) {}, | 436 performIndexing(progress) {}, |
| 437 | 437 |
| 438 stopSearch() {} | 438 stopSearch() {} |
| 439 }; | 439 }; |
| OLD | NEW |