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

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

Issue 708383003: Move 4 UI components to FileManagerUI class from FileManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_selection.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_selection.js b/ui/file_manager/file_manager/foreground/js/file_selection.js
index e38bb9741f5e461b36d8cd2e43464f546266b76d..fc736e893b36377f1c976d8d6921359486dd5359 100644
--- a/ui/file_manager/file_manager/foreground/js/file_selection.js
+++ b/ui/file_manager/file_manager/foreground/js/file_selection.js
@@ -160,7 +160,7 @@ function FileSelectionHandler(fileManager) {
this.okButton_ = fileManager.ui.dialogFooter.okButton;
this.filenameInput_ = fileManager.ui.dialogFooter.filenameInput;
this.previewPanel_ = fileManager.ui.previewPanel;
- this.taskItems_ = fileManager.taskItems_;
+ this.taskMenuButton_ = fileManager.ui.taskMenuButton;
this.selection = new FileSelection(this.fileManager_, []);
}
@@ -335,11 +335,11 @@ FileSelectionHandler.prototype.updateFileSelectionAsync = function(selection) {
selection.createTasks(function() {
if (this.selection != selection)
return;
- selection.tasks.display(this.taskItems_);
+ selection.tasks.display(this.taskMenuButton_);
selection.tasks.updateMenuItem();
}.bind(this));
} else {
- this.taskItems_.hidden = true;
+ this.taskMenuButton_.hidden = true;
}
// Update preview panels.

Powered by Google App Engine
This is Rietveld 408576698