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

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

Issue 912783002: Integrate ListThumbnailLoader to list view and grid view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failed test case. Created 5 years, 10 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: ui/file_manager/file_manager/foreground/js/ui/file_table_list.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_table_list.js b/ui/file_manager/file_manager/foreground/js/ui/file_table_list.js
new file mode 100644
index 0000000000000000000000000000000000000000..d7c2009ab9a4311016f443f9381a7090228270b1
--- /dev/null
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_table_list.js
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * File table list.
+ * @constructor
+ * @struct
+ * @extends {cr.ui.table.TableList}
+ * @suppress {checkStructDictInheritance}
+ */
+function FileTableList() {}
+
+/**
+ * Decorates TableList as FileTableList.
+ * @param {!cr.ui.table.TableList} self A tabel list element.
+ */
+FileTableList.decorate = function(self) {
+ self.__proto__ = FileTableList.prototype;
+}
+
+FileTableList.prototype.__proto__ = cr.ui.table.TableList.prototype;
+
+/** @override */
+FileTableList.prototype.mergeItems = function(beginIndex, endIndex) {
+ cr.ui.table.TableList.prototype.mergeItems.call(this, beginIndex, endIndex);
+
+ this.table.updateHighPriorityRange(beginIndex, endIndex);
+}

Powered by Google App Engine
This is Rietveld 408576698