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

Side by Side Diff: chrome/browser/resources/settings/settings_page/settings_subpage_search.js

Issue 2772873002: MD Settings: Allow searching the languages list in "add language" dialog. (Closed)
Patch Set: Fix test. Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @fileoverview 6 * @fileoverview
7 * 'settings-subpage-search' shows a search field in the subpage's header. 7 * 'settings-subpage-search' shows a search field in the subpage's header.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
11 is: 'settings-subpage-search', 11 is: 'settings-subpage-search',
12 12
13 behaviors: [CrSearchFieldBehavior], 13 behaviors: [CrSearchFieldBehavior],
14 14
15 properties: {
16 autofocus: Boolean,
17 },
18
15 /** @return {!HTMLInputElement} */ 19 /** @return {!HTMLInputElement} */
16 getSearchInput: function() { 20 getSearchInput: function() {
17 return this.$.searchInput; 21 return this.$.searchInput;
18 }, 22 },
19 23
20 /** @private */ 24 /** @private */
21 onTapClear_: function() { 25 onTapClear_: function() {
22 this.setValue(''); 26 this.setValue('');
23 }, 27 },
24 }); 28 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698