| Index: Source/devtools/front_end/ui/ThrottledWidget.js
|
| diff --git a/Source/devtools/front_end/ui/ThrottledWidget.js b/Source/devtools/front_end/ui/ThrottledWidget.js
|
| index fe8fa2b3c4a3224eeac4460b427db31d554d3f52..5f49e8cc4f27d6ad6a227d56b320be7a5c1c0e24 100644
|
| --- a/Source/devtools/front_end/ui/ThrottledWidget.js
|
| +++ b/Source/devtools/front_end/ui/ThrottledWidget.js
|
| @@ -15,12 +15,12 @@ WebInspector.ThrottledWidget = function()
|
|
|
| WebInspector.ThrottledWidget.prototype = {
|
| /**
|
| - * @param {!WebInspector.Throttler.FinishCallback} finishedCallback
|
| * @protected
|
| + * @return {!Promise.<?>}
|
| */
|
| - doUpdate: function(finishedCallback)
|
| + doUpdate: function()
|
| {
|
| - finishedCallback();
|
| + return Promise.resolve();
|
| },
|
|
|
| update: function()
|
| @@ -31,16 +31,16 @@ WebInspector.ThrottledWidget.prototype = {
|
| this._updateThrottler.schedule(innerUpdate.bind(this));
|
|
|
| /**
|
| - * @param {!WebInspector.Throttler.FinishCallback} finishedCallback
|
| * @this {WebInspector.ThrottledWidget}
|
| + * @return {!Promise.<?>}
|
| */
|
| - function innerUpdate(finishedCallback)
|
| + function innerUpdate()
|
| {
|
| if (this.isShowing()) {
|
| - this.doUpdate(finishedCallback);
|
| + return this.doUpdate();
|
| } else {
|
| this._updateWhenVisible = true;
|
| - finishedCallback();
|
| + return Promise.resolve();
|
| }
|
| }
|
| },
|
|
|