| 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
|
|
|