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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 2065933005: Quick View: Format metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 /** @private {importer.MediaImportHandler} */ 52 /** @private {importer.MediaImportHandler} */
53 this.mediaImportHandler_ = null; 53 this.mediaImportHandler_ = null;
54 54
55 /** 55 /**
56 * @private {MetadataModel} 56 * @private {MetadataModel}
57 */ 57 */
58 this.metadataModel_ = null; 58 this.metadataModel_ = null;
59 59
60 /** 60 /**
61 * @private {!FileMetadataFormatter}
62 */
63 this.fileMetadataFormatter_ = new FileMetadataFormatter();
64
65 /**
61 * @private {ThumbnailModel} 66 * @private {ThumbnailModel}
62 */ 67 */
63 this.thumbnailModel_ = null; 68 this.thumbnailModel_ = null;
64 69
65 /** 70 /**
66 * File operation manager. 71 * File operation manager.
67 * @type {FileOperationManager} 72 * @type {FileOperationManager}
68 * @private 73 * @private
69 */ 74 */
70 this.fileOperationManager_ = null; 75 this.fileOperationManager_ = null;
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 'disable-files-quick-view', function(disabled) { 558 'disable-files-quick-view', function(disabled) {
554 if (!disabled) { 559 if (!disabled) {
555 this.quickViewController_ = new QuickViewController( 560 this.quickViewController_ = new QuickViewController(
556 quickView, assert(this.metadataModel_), 561 quickView, assert(this.metadataModel_),
557 assert(this.selectionHandler_), 562 assert(this.selectionHandler_),
558 assert(this.ui_.listContainer), assert(this.quickViewModel_), 563 assert(this.ui_.listContainer), assert(this.quickViewModel_),
559 assert(this.taskController_), 564 assert(this.taskController_),
560 fileListSelectionModel); 565 fileListSelectionModel);
561 this.metadataBoxController_ = new MetadataBoxController( 566 this.metadataBoxController_ = new MetadataBoxController(
562 this.metadataModel_, quickView.getFilesMetadataBox(), 567 this.metadataModel_, quickView.getFilesMetadataBox(),
563 quickView, this.quickViewModel_); 568 quickView, this.quickViewModel_, this.fileMetadataFormatter_);
564 } 569 }
565 }.bind(this)); 570 }.bind(this));
566 } 571 }
567 572
568 assert(this.fileFilter_); 573 assert(this.fileFilter_);
569 assert(this.namingController_); 574 assert(this.namingController_);
570 assert(this.appStateController_); 575 assert(this.appStateController_);
571 assert(this.taskController_); 576 assert(this.taskController_);
572 this.mainWindowComponent_ = new MainWindowComponent( 577 this.mainWindowComponent_ = new MainWindowComponent(
573 this.dialogType, 578 this.dialogType,
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 if (this.dialogType === DialogType.FULL_PAGE) { 1029 if (this.dialogType === DialogType.FULL_PAGE) {
1025 this.columnVisibilityController_ = new ColumnVisibilityController( 1030 this.columnVisibilityController_ = new ColumnVisibilityController(
1026 this.ui_, this.directoryModel_, this.volumeManager_); 1031 this.ui_, this.directoryModel_, this.volumeManager_);
1027 } 1032 }
1028 1033
1029 // Create metadata update controller. 1034 // Create metadata update controller.
1030 this.metadataUpdateController_ = new MetadataUpdateController( 1035 this.metadataUpdateController_ = new MetadataUpdateController(
1031 this.ui_.listContainer, 1036 this.ui_.listContainer,
1032 assert(this.ui_.detailsContainer), 1037 assert(this.ui_.detailsContainer),
1033 this.directoryModel_, 1038 this.directoryModel_,
1034 this.metadataModel_); 1039 this.metadataModel_,
1040 this.fileMetadataFormatter_);
1035 1041
1036 // Create task controller. 1042 // Create task controller.
1037 this.taskController_ = new TaskController( 1043 this.taskController_ = new TaskController(
1038 this.dialogType, 1044 this.dialogType,
1039 this.volumeManager_, 1045 this.volumeManager_,
1040 this.ui_, 1046 this.ui_,
1041 this.metadataModel_, 1047 this.metadataModel_,
1042 this.directoryModel_, 1048 this.directoryModel_,
1043 this.selectionHandler_, 1049 this.selectionHandler_,
1044 this.metadataUpdateController_); 1050 this.metadataUpdateController_);
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 FileManager.prototype.debugMe = function() { 1469 FileManager.prototype.debugMe = function() {
1464 var out = 'Debug information.\n'; 1470 var out = 'Debug information.\n';
1465 1471
1466 out += '1. VolumeManagerWrapper\n' + 1472 out += '1. VolumeManagerWrapper\n' +
1467 this.volumeManager_.toString() + '\n'; 1473 this.volumeManager_.toString() + '\n';
1468 1474
1469 out += 'End of debug information.'; 1475 out += 'End of debug information.';
1470 console.log(out); 1476 console.log(out);
1471 }; 1477 };
1472 })(); 1478 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698