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

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

Issue 884183006: Files.app: Add UI to toggle and clear item selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. 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/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index f4d00e23e57fc64a3a929e78376e5aa3a75a97bd..a99ce518c41ccb2c6dd0462e469559412b9a1fe9 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -177,6 +177,13 @@ function FileManager() {
this.gearMenuController_ = null;
/**
+ * Toolbar controller.
+ * @type {ToolbarController}
+ * @private
+ */
+ this.toolbarController_ = null;
+
+ /**
* App state controller.
* @type {AppStateController}
* @private
@@ -415,6 +422,11 @@ FileManager.prototype = /** @struct */ {
this.ui_.gearMenu,
this.directoryModel_,
this.commandHandler);
+ this.toolbarController_ = new ToolbarController(
+ this.ui_.cancelSelectionButton,
+ this.ui_.filesSelectedLabel,
+ this.selectionHandler_,
+ this.directoryModel_.getFileListSelection());
importer.importEnabled().then(
function(enabled) {

Powered by Google App Engine
This is Rietveld 408576698