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

Unified Diff: ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js

Issue 2571583004: MD WebUI: Delete cr-search-field, simplify CrSearchFieldBehavior (Closed)
Patch Set: Use focus_() Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js
diff --git a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js
deleted file mode 100644
index e9a7e3e17869d733801e43972bd0329d2673eb1a..0000000000000000000000000000000000000000
--- a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var SearchField = Polymer({
- is: 'cr-search-field',
-
- behaviors: [CrSearchFieldBehavior],
-
- properties: {
- value_: String,
- },
-
- /** @return {!HTMLInputElement} */
- getSearchInput: function() {
- return this.$.searchInput;
- },
-
- /** @private */
- clearSearch_: function() {
- this.setValue('');
- this.getSearchInput().focus();
- },
-
- /** @private */
- toggleShowingSearch_: function() {
- this.showingSearch = !this.showingSearch;
- },
-});

Powered by Google App Engine
This is Rietveld 408576698