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

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

Issue 962103002: Files.app: Introduce check-select mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove remaining debug log. 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
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/file_table.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 2623ceaf288176e4e68f700087cfd5bad59e1c39..207c848e3a3f52076a0b6dc8821e8656ed7bb7e1 100644
--- 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
@@ -39,3 +39,35 @@ FileTableList.prototype.mergeItems = function(beginIndex, endIndex) {
this.table.updateHighPriorityRange(beginIndex, endIndex);
}
+
+/** @override */
+FileTableList.prototype.createSelectionController = function(sm) {
+ return new FileListSelectionController(assert(sm));
+}
+
+/**
+ * Selection controller for the file table list.
+ * @param {!cr.ui.ListSelectionModel} selectionModel The selection model to
+ * interact with.
+ * @constructor
+ * @extends {cr.ui.ListSelectionController}
+ * @struct
+ * @suppress {checkStructDictInheritance}
+ */
+function FileListSelectionController(selectionModel) {
+ cr.ui.ListSelectionController.call(this, selectionModel);
+}
+
+FileListSelectionController.prototype = /** @struct */ {
+ __proto__: cr.ui.ListSelectionController.prototype
+};
+
+/** @override */
+FileListSelectionController.prototype.handlePointerDownUp = function(e, index) {
+ filelist.handlePointerDownUp.call(this, e, index);
+};
+
+/** @override */
+FileListSelectionController.prototype.handleKeyDown = function(e) {
+ filelist.handleKeyDown.call(this, e);
+};
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/file_table.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698