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 (though the | 9 * dialogs, as well as the full screen file manager application (though the |
10 * latter is not yet implemented). | 10 * latter is not yet implemented). |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 */ | 119 */ |
120 this.selectionHandler_ = null; | 120 this.selectionHandler_ = null; |
121 | 121 |
122 /** | 122 /** |
123 * UI management class of file manager. | 123 * UI management class of file manager. |
124 * @type {FileManagerUI} | 124 * @type {FileManagerUI} |
125 * @private | 125 * @private |
126 */ | 126 */ |
127 this.ui_ = null; | 127 this.ui_ = null; |
128 | 128 |
| 129 /** |
| 130 * @private {analytics.Tracker} |
| 131 */ |
| 132 this.tracker_ = null; |
| 133 |
129 // -------------------------------------------------------------------------- | 134 // -------------------------------------------------------------------------- |
130 // Parameters determining the type of file manager. | 135 // Parameters determining the type of file manager. |
131 | 136 |
132 /** | 137 /** |
133 * Dialog type of this window. | 138 * Dialog type of this window. |
134 * @type {DialogType} | 139 * @type {DialogType} |
135 */ | 140 */ |
136 this.dialogType = DialogType.FULL_PAGE; | 141 this.dialogType = DialogType.FULL_PAGE; |
137 | 142 |
138 /** | 143 /** |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 function(enabled) { | 450 function(enabled) { |
446 if (enabled) { | 451 if (enabled) { |
447 this.importController_ = new importer.ImportController( | 452 this.importController_ = new importer.ImportController( |
448 new importer.RuntimeControllerEnvironment( | 453 new importer.RuntimeControllerEnvironment( |
449 this, | 454 this, |
450 this.selectionHandler_), | 455 this.selectionHandler_), |
451 /** @type {!importer.MediaScanner} */ ( | 456 /** @type {!importer.MediaScanner} */ ( |
452 this.mediaScanner_), | 457 this.mediaScanner_), |
453 /** @type {!importer.ImportRunner} */ ( | 458 /** @type {!importer.ImportRunner} */ ( |
454 this.mediaImportHandler_), | 459 this.mediaImportHandler_), |
455 new importer.RuntimeCommandWidget()); | 460 new importer.RuntimeCommandWidget(), |
| 461 this.tracker_); |
456 } | 462 } |
457 }.bind(this)); | 463 }.bind(this)); |
458 | 464 |
459 assert(this.fileFilter_); | 465 assert(this.fileFilter_); |
460 assert(this.namingController_); | 466 assert(this.namingController_); |
461 assert(this.appStateController_); | 467 assert(this.appStateController_); |
462 assert(this.taskController_); | 468 assert(this.taskController_); |
463 this.mainWindowComponent_ = new MainWindowComponent( | 469 this.mainWindowComponent_ = new MainWindowComponent( |
464 this.dialogType, | 470 this.dialogType, |
465 this.ui_, | 471 this.ui_, |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 loadTimeData.data = this.backgroundPage_.background.stringData; | 651 loadTimeData.data = this.backgroundPage_.background.stringData; |
646 if (util.runningInBrowser()) | 652 if (util.runningInBrowser()) |
647 this.backgroundPage_.registerDialog(window); | 653 this.backgroundPage_.registerDialog(window); |
648 this.fileOperationManager_ = | 654 this.fileOperationManager_ = |
649 this.backgroundPage_.background.fileOperationManager; | 655 this.backgroundPage_.background.fileOperationManager; |
650 this.mediaImportHandler_ = | 656 this.mediaImportHandler_ = |
651 this.backgroundPage_.background.mediaImportHandler; | 657 this.backgroundPage_.background.mediaImportHandler; |
652 this.mediaScanner_ = | 658 this.mediaScanner_ = |
653 this.backgroundPage_.background.mediaScanner; | 659 this.backgroundPage_.background.mediaScanner; |
654 this.historyLoader_ = this.backgroundPage_.background.historyLoader; | 660 this.historyLoader_ = this.backgroundPage_.background.historyLoader; |
| 661 this.tracker_ = this.backgroundPage_.background.tracker; |
655 callback(); | 662 callback(); |
656 }.bind(this)); | 663 }.bind(this)); |
657 }.bind(this))); | 664 }.bind(this))); |
658 }; | 665 }; |
659 | 666 |
660 /** | 667 /** |
661 * Initializes the VolumeManager instance. | 668 * Initializes the VolumeManager instance. |
662 * @param {function()} callback Completion callback. | 669 * @param {function()} callback Completion callback. |
663 * @private | 670 * @private |
664 */ | 671 */ |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; | 1306 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; |
1300 }.bind(this)); | 1307 }.bind(this)); |
1301 | 1308 |
1302 out += '2. VolumeManagerWrapper\n' + | 1309 out += '2. VolumeManagerWrapper\n' + |
1303 this.volumeManager_.toString() + '\n'; | 1310 this.volumeManager_.toString() + '\n'; |
1304 | 1311 |
1305 out += 'End of debug information.'; | 1312 out += 'End of debug information.'; |
1306 console.log(out); | 1313 console.log(out); |
1307 }; | 1314 }; |
1308 })(); | 1315 })(); |
OLD | NEW |