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

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

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 3 years, 11 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 * @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 16 matching lines...) Expand all
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 this._searchPanelElement.createChild('div', 'search-icon'); 32 this._searchPanelElement.createChild('div', 'search-icon');
33 this._searchInputClearElement = this._searchPanelElement.createChild('div', 'search-cancel-button'); 33 this._searchInputClearElement = this._searchPanelElement.createChild('div', 'search-cancel-button');
34 this._searchInputClearElement.hidden = true; 34 this._searchInputClearElement.hidden = true;
35 this._searchInputClearElement.addEventListener('click', this._onSearchInputC lear.bind(this), false); 35 this._searchInputClearElement.addEventListener('click', this._onSearchInputC lear.bind(this), false);
36 36
37 this._ignoreCaseLabel = createCheckboxLabel(Common.UIString('Ignore case')); 37 this._ignoreCaseLabel = UI.createCheckboxLabel(Common.UIString('Ignore case' ));
38 this._ignoreCaseLabel.classList.add('search-config-label'); 38 this._ignoreCaseLabel.classList.add('search-config-label');
39 this._searchPanelElement.appendChild(this._ignoreCaseLabel); 39 this._searchPanelElement.appendChild(this._ignoreCaseLabel);
40 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement; 40 this._ignoreCaseCheckbox = this._ignoreCaseLabel.checkboxElement;
41 this._ignoreCaseCheckbox.classList.add('search-config-checkbox'); 41 this._ignoreCaseCheckbox.classList.add('search-config-checkbox');
42 42
43 this._regexLabel = createCheckboxLabel(Common.UIString('Regular expression') ); 43 this._regexLabel = UI.createCheckboxLabel(Common.UIString('Regular expressio n'));
44 this._regexLabel.classList.add('search-config-label'); 44 this._regexLabel.classList.add('search-config-label');
45 this._searchPanelElement.appendChild(this._regexLabel); 45 this._searchPanelElement.appendChild(this._regexLabel);
46 this._regexCheckbox = this._regexLabel.checkboxElement; 46 this._regexCheckbox = this._regexLabel.checkboxElement;
47 this._regexCheckbox.classList.add('search-config-checkbox'); 47 this._regexCheckbox.classList.add('search-config-checkbox');
48 48
49 this._searchToolbarElement = this.contentElement.createChild('div', 'search- toolbar-summary'); 49 this._searchToolbarElement = this.contentElement.createChild('div', 'search- toolbar-summary');
50 this._searchMessageElement = this._searchToolbarElement.createChild('div', ' search-message'); 50 this._searchMessageElement = this._searchToolbarElement.createChild('div', ' search-message');
51 this._searchProgressPlaceholderElement = this._searchToolbarElement.createCh ild('div', 'flex-centered'); 51 this._searchProgressPlaceholderElement = this._searchToolbarElement.createCh ild('div', 'flex-centered');
52 this._searchResultsMessageElement = this._searchToolbarElement.createChild(' div', 'search-message'); 52 this._searchResultsMessageElement = this._searchToolbarElement.createChild(' div', 'search-message');
53 53
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 performIndexing(progress) {}, 434 performIndexing(progress) {},
435 435
436 stopSearch() {}, 436 stopSearch() {},
437 437
438 /** 438 /**
439 * @param {!Workspace.ProjectSearchConfig} searchConfig 439 * @param {!Workspace.ProjectSearchConfig} searchConfig
440 * @return {!Sources.SearchResultsPane} 440 * @return {!Sources.SearchResultsPane}
441 */ 441 */
442 createSearchResultsPane(searchConfig) {} 442 createSearchResultsPane(searchConfig) {}
443 }; 443 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698