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); |
+} |