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

Unified Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 1285183006: DevTools: WI.Throttler goes promisified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cc
Patch Set: remove dependent patchset Created 5 years, 4 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/front_end/console/ConsoleView.js
diff --git a/Source/devtools/front_end/console/ConsoleView.js b/Source/devtools/front_end/console/ConsoleView.js
index bf465f50cec16026ef4359137da0581c744dafa5..7c51da8a8af96c7d13c8ce4bea5d4c97a7a693fd 100644
--- a/Source/devtools/front_end/console/ConsoleView.js
+++ b/Source/devtools/front_end/console/ConsoleView.js
@@ -373,10 +373,10 @@ WebInspector.ConsoleView.prototype = {
_scheduleViewportRefresh: function()
{
/**
- * @param {!WebInspector.Throttler.FinishCallback} finishCallback
* @this {WebInspector.ConsoleView}
+ * @return {!Promise.<undefined>}
*/
- function invalidateViewport(finishCallback)
+ function invalidateViewport()
{
if (this._needsFullUpdate) {
this._updateMessageList();
@@ -384,7 +384,7 @@ WebInspector.ConsoleView.prototype = {
} else {
this._viewport.invalidate();
}
- finishCallback();
+ return Promise.resolve();
}
this._viewportThrottler.schedule(invalidateViewport.bind(this));
},
« no previous file with comments | « Source/devtools/front_end/common/Throttler.js ('k') | Source/devtools/front_end/elements/ComputedStyleWidget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698