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

Unified Diff: Source/devtools/blink/chromeServerProfile/Default/Cache/f_000056

Issue 242263007: Add <label> to items in Event Listener Breakpoint of Chrome Dev Tools Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 6 years, 8 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: Source/devtools/blink/chromeServerProfile/Default/Cache/f_000056
diff --git a/Source/devtools/front_end/StatusBarButton.js b/Source/devtools/blink/chromeServerProfile/Default/Cache/f_000056
similarity index 98%
copy from Source/devtools/front_end/StatusBarButton.js
copy to Source/devtools/blink/chromeServerProfile/Default/Cache/f_000056
index 1343589fb90f6d72faa8ce6815a3fa2fc10624fb..bea00f70ed3723460f511888df231b3971704c91 100644
--- a/Source/devtools/front_end/StatusBarButton.js
+++ b/Source/devtools/blink/chromeServerProfile/Default/Cache/f_000056
@@ -118,34 +118,29 @@ WebInspector.StatusBarInput = function(placeholder, width)
this.element.style.width = width + "px";
if (placeholder)
this.element.setAttribute("placeholder", placeholder);
- this._value = "";
}
-WebInspector.StatusBarInput.Event = {
- TextChanged: "TextChanged"
-};
-
WebInspector.StatusBarInput.prototype = {
/**
- * @param {string} value
+ * @param {?function(string)} handler
*/
- setValue: function(value)
+ setOnChangeHandler: function(handler)
{
- this._value = value;
- this.element.value = value;
+ this._onChangeHandler = handler;
},
/**
- * @return {string}
+ * @param {string} value
*/
- value: function()
+ setValue: function(value)
{
- return this.element.value;
+ this.element.value = value;
+ this._onChangeCallback();
},
_onChangeCallback: function()
{
- this.dispatchEventToListeners(WebInspector.StatusBarInput.Event.TextChanged, this.element.value);
+ this._onChangeHandler && this._onChangeHandler(this.element.value);
},
__proto__: WebInspector.StatusBarItem.prototype

Powered by Google App Engine
This is Rietveld 408576698