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

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

Issue 2288663002: Enable Quick View on file selector / file download window. (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e711f470d9cafacf97a6bf6601eb8b6a37c6f4bd..e45de75f27c586a00267befd802d16084bea406a 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -543,6 +543,25 @@ FileManager.prototype = /** @struct */ {
/**@private {!FilesQuickView} */
var quickView = /** @type {!FilesQuickView} */
(queryRequiredElement('#quick-view'));
+ var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ (
+ this.directoryModel_.getFileListSelection());
+ chrome.commandLinePrivate.hasSwitch(
+ 'disable-files-quick-view', function(disabled) {
+ if (!disabled) {
+ this.quickViewUma_ =
+ new QuickViewUma(assert(this.volumeManager_));
+ this.quickViewController_ = new QuickViewController(
+ quickView, assert(this.metadataModel_),
+ assert(this.selectionHandler_),
+ assert(this.ui_.listContainer), assert(this.quickViewModel_),
+ assert(this.taskController_),
+ fileListSelectionModel,
+ assert(this.quickViewUma_));
+ this.metadataBoxController_ = new MetadataBoxController(
+ this.metadataModel_, quickView.getFilesMetadataBox(),
+ quickView, this.quickViewModel_, this.fileMetadataFormatter_);
+ }
+ }.bind(this));
if (this.dialogType === DialogType.FULL_PAGE) {
importer.importEnabled().then(
@@ -558,25 +577,6 @@ FileManager.prototype = /** @struct */ {
assert(this.tracker_));
}
}.bind(this));
- var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ (
- this.directoryModel_.getFileListSelection());
- chrome.commandLinePrivate.hasSwitch(
- 'disable-files-quick-view', function(disabled) {
- if (!disabled) {
- this.quickViewUma_ =
- new QuickViewUma(assert(this.volumeManager_));
- this.quickViewController_ = new QuickViewController(
- quickView, assert(this.metadataModel_),
- assert(this.selectionHandler_),
- assert(this.ui_.listContainer), assert(this.quickViewModel_),
- assert(this.taskController_),
- fileListSelectionModel,
- assert(this.quickViewUma_));
- this.metadataBoxController_ = new MetadataBoxController(
- this.metadataModel_, quickView.getFilesMetadataBox(),
- quickView, this.quickViewModel_, this.fileMetadataFormatter_);
- }
- }.bind(this));
}
assert(this.fileFilter_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698