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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js

Issue 2681043002: DevTools: Combine TextPrompt events into UI.TextPrompt.TextChangedEvent (Closed)
Patch Set: leave comment Created 3 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: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
index 04f57444a0f11eb33f4fce86e5630ca12d1ebab8..a1e87aaba4f56cb006b8d1192ba7b9f3272c47f6 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
@@ -189,10 +189,8 @@ UI.TextFilterUI = class extends Common.Object {
this._proxyElement = this._prompt.attach(this._filterInputElement);
this._prompt.setPlaceholder(Common.UIString('Filter'));
- this._proxyElement.addEventListener('input', this._valueChanged.bind(this), false);
this._proxyElement.addEventListener('keydown', this._onInputKeyDown.bind(this), false);
- this._prompt.addEventListener(UI.TextPrompt.Events.ItemAccepted, this._valueChanged.bind(this));
- this._prompt.addEventListener(UI.TextPrompt.Events.ItemApplied, this._valueChanged.bind(this));
+ this._prompt.on(UI.TextPrompt.TextChangedEvent, this._valueChanged.bind(this));
/** @type {?function(string, string, boolean=):!Promise<!UI.SuggestBox.Suggestions>} */
this._suggestionProvider = null;

Powered by Google App Engine
This is Rietveld 408576698