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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_table.js

Issue 329083002: Modify AsyncUtil.Aggregation to be able to keep calling in limited rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Seal the newed RateLimiter object. Created 6 years, 6 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
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_grid.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_table.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_table.js b/ui/file_manager/file_manager/foreground/js/file_table.js
index 8f64c1f59771fb2eecb5a654801a765ce668b6fd..f095a0a8c4772f68969a7c1dc8884065509db1f0 100644
--- a/ui/file_manager/file_manager/foreground/js/file_table.js
+++ b/ui/file_manager/file_manager/foreground/js/file_table.js
@@ -305,8 +305,8 @@ FileTable.decorate = function(self, metadataCache, fullPage) {
e.preventDefault();
});
- self.relayoutAggregation_ =
- new AsyncUtil.Aggregation(self.relayoutImmediately_.bind(self));
+ self.relayoutRateLimiter_ =
+ new AsyncUtil.RateLimiter(self.relayoutImmediately_.bind(self));
// Override header#redraw to use FileTableSplitter.
self.header_.redraw = function() {
@@ -734,7 +734,7 @@ FileTable.prototype.setBottomMarginForPanel = function(margin) {
* Redraws the UI. Skips multiple consecutive calls.
*/
FileTable.prototype.relayout = function() {
- this.relayoutAggregation_.run();
+ this.relayoutRateLimiter_.run();
};
/**
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_grid.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698