OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * FileManager constructor. | 6 * FileManager constructor. |
7 * | 7 * |
8 * FileManager objects encapsulate the functionality of the file selector | 8 * FileManager objects encapsulate the functionality of the file selector |
9 * dialogs, as well as the full screen file manager application. | 9 * dialogs, as well as the full screen file manager application. |
10 * | 10 * |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 | 541 |
542 this.quickViewModel_ = new QuickViewModel(); | 542 this.quickViewModel_ = new QuickViewModel(); |
543 /**@private {!FilesQuickView} */ | 543 /**@private {!FilesQuickView} */ |
544 var quickView = /** @type {!FilesQuickView} */ | 544 var quickView = /** @type {!FilesQuickView} */ |
545 (queryRequiredElement('#quick-view')); | 545 (queryRequiredElement('#quick-view')); |
546 var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ ( | 546 var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ ( |
547 this.directoryModel_.getFileListSelection()); | 547 this.directoryModel_.getFileListSelection()); |
548 chrome.commandLinePrivate.hasSwitch( | 548 chrome.commandLinePrivate.hasSwitch( |
549 'disable-files-quick-view', function(disabled) { | 549 'disable-files-quick-view', function(disabled) { |
550 if (!disabled) { | 550 if (!disabled) { |
551 this.quickViewUma_ = | 551 this.quickViewUma_ = new QuickViewUma( |
552 new QuickViewUma(assert(this.volumeManager_)); | 552 assert(this.volumeManager_), assert(this.dialogType)); |
553 this.quickViewController_ = new QuickViewController( | 553 this.quickViewController_ = new QuickViewController( |
554 quickView, assert(this.metadataModel_), | 554 quickView, assert(this.metadataModel_), |
555 assert(this.selectionHandler_), | 555 assert(this.selectionHandler_), |
556 assert(this.ui_.listContainer), assert(this.quickViewModel_), | 556 assert(this.ui_.listContainer), assert(this.quickViewModel_), |
557 assert(this.taskController_), | 557 assert(this.taskController_), |
558 fileListSelectionModel, | 558 fileListSelectionModel, |
559 assert(this.quickViewUma_)); | 559 assert(this.quickViewUma_)); |
560 this.metadataBoxController_ = new MetadataBoxController( | 560 this.metadataBoxController_ = new MetadataBoxController( |
561 this.metadataModel_, quickView.getFilesMetadataBox(), | 561 this.metadataModel_, quickView.getFilesMetadataBox(), |
562 quickView, this.quickViewModel_, this.fileMetadataFormatter_); | 562 quickView, this.quickViewModel_, this.fileMetadataFormatter_); |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1465 FileManager.prototype.debugMe = function() { | 1465 FileManager.prototype.debugMe = function() { |
1466 var out = 'Debug information.\n'; | 1466 var out = 'Debug information.\n'; |
1467 | 1467 |
1468 out += '1. VolumeManagerWrapper\n' + | 1468 out += '1. VolumeManagerWrapper\n' + |
1469 this.volumeManager_.toString() + '\n'; | 1469 this.volumeManager_.toString() + '\n'; |
1470 | 1470 |
1471 out += 'End of debug information.'; | 1471 out += 'End of debug information.'; |
1472 console.log(out); | 1472 console.log(out); |
1473 }; | 1473 }; |
1474 })(); | 1474 })(); |
OLD | NEW |