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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/search_box.js

Issue 940933002: Files.app: Re-design auto-complete suggestion list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/ui/search_box.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/search_box.js b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
index eb3b6c73de7c64e641b4504602348ef837bf2842..3ed4f992322c20554a7ffce9395d7b911fc775d5 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/search_box.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
@@ -45,12 +45,6 @@ function SearchBox(element, searchButton, noResultMessage) {
this.inputElement = /** @type {!HTMLInputElement} */ (
element.querySelector('input'));
- /**
- * Clear button of the search box.
- * @type {Element}
- */
- this.clearButton = element.querySelector('.clear');
-
// Register events.
this.inputElement.addEventListener('input', this.onInput_.bind(this));
this.inputElement.addEventListener('keydown', this.onKeyDown_.bind(this));
@@ -66,9 +60,6 @@ function SearchBox(element, searchButton, noResultMessage) {
this.searchButton.addEventListener(
'click',
this.onSearchButtonClick_.bind(this));
- this.clearButton.addEventListener(
- 'click',
- this.onClearButtonClick_.bind(this));
var dispatchItemSelect =
cr.dispatchSimpleEvent.bind(cr, this, SearchBox.EventType.ITEM_SELECT);
this.autocompleteList.handleEnterKeydown = dispatchItemSelect;
@@ -267,11 +258,3 @@ SearchBox.prototype.updateStyles_ = function() {
SearchBox.prototype.onSearchButtonClick_ = function() {
this.inputElement.focus();
};
-
-/**
- * @private
- */
-SearchBox.prototype.onClearButtonClick_ = function() {
- this.inputElement.value = '';
- this.onInput_();
-};

Powered by Google App Engine
This is Rietveld 408576698