| 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 0015cbcef85396cc637400ade82cbb0d22d4a91a..232e7cba8a5b3242e2010cebe61031df2f2a35a4 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| @@ -100,6 +100,13 @@ function FileManager() {
|
| this.providersModel_ = null;
|
|
|
| /**
|
| + * Model for quick view.
|
| + * @type {QuickViewModel}
|
| + * @private
|
| + */
|
| + this.quickViewModel_ = null;
|
| +
|
| + /**
|
| * Controller for actions for current selection.
|
| * @private {ActionsController}
|
| */
|
| @@ -260,6 +267,12 @@ function FileManager() {
|
| */
|
| this.quickViewController_ = null;
|
|
|
| + /**
|
| + * @type {MetadataBoxController}
|
| + * @private
|
| + */
|
| + this.metadataBoxController_ = null;
|
| +
|
| // --------------------------------------------------------------------------
|
| // DOM elements.
|
|
|
| @@ -516,16 +529,20 @@ FileManager.prototype = /** @struct */ {
|
| this.backgroundPage_.background.driveSyncHandler,
|
| this.selectionHandler_, assert(this.ui_));
|
|
|
| + this.quickViewModel_ = new QuickViewModel();
|
| /**@private {!FilesQuickView} */
|
| - var quickView =/** @type {!FilesQuickView} */
|
| + var quickView = /** @type {!FilesQuickView} */
|
| (queryRequiredElement('#quick-view'));
|
| chrome.commandLinePrivate.hasSwitch(
|
| 'disable-files-quick-view', function(disabled) {
|
| if (!disabled) {
|
| this.quickViewController_ = new QuickViewController(
|
| - quickView,
|
| - assert(this.metadataModel_), assert(this.selectionHandler_),
|
| - assert(this.ui_.listContainer));
|
| + quickView, assert(this.metadataModel_),
|
| + assert(this.selectionHandler_), assert(this.ui_.listContainer),
|
| + assert(this.quickViewModel_));
|
| + this.metadataBoxController_ = new MetadataBoxController(
|
| + this.metadataModel_, quickView.getFilesMetadataBox(), quickView,
|
| + this.quickViewModel_);
|
| }
|
| }.bind(this));
|
|
|
|
|