| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 */ | 111 */ |
| 112 this.selectionHandler_ = null; | 112 this.selectionHandler_ = null; |
| 113 | 113 |
| 114 /** | 114 /** |
| 115 * UI management class of file manager. | 115 * UI management class of file manager. |
| 116 * @type {FileManagerUI} | 116 * @type {FileManagerUI} |
| 117 * @private | 117 * @private |
| 118 */ | 118 */ |
| 119 this.ui_ = null; | 119 this.ui_ = null; |
| 120 | 120 |
| 121 /** |
| 122 * @private {analytics.Tracker} |
| 123 */ |
| 124 this.tracker_ = null; |
| 125 |
| 121 // -------------------------------------------------------------------------- | 126 // -------------------------------------------------------------------------- |
| 122 // Parameters determining the type of file manager. | 127 // Parameters determining the type of file manager. |
| 123 | 128 |
| 124 /** | 129 /** |
| 125 * Dialog type of this window. | 130 * Dialog type of this window. |
| 126 * @type {DialogType} | 131 * @type {DialogType} |
| 127 */ | 132 */ |
| 128 this.dialogType = DialogType.FULL_PAGE; | 133 this.dialogType = DialogType.FULL_PAGE; |
| 129 | 134 |
| 130 /** | 135 /** |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 function(enabled) { | 431 function(enabled) { |
| 427 if (enabled) { | 432 if (enabled) { |
| 428 this.importController_ = new importer.ImportController( | 433 this.importController_ = new importer.ImportController( |
| 429 new importer.RuntimeControllerEnvironment( | 434 new importer.RuntimeControllerEnvironment( |
| 430 this, | 435 this, |
| 431 this.selectionHandler_), | 436 this.selectionHandler_), |
| 432 /** @type {!importer.MediaScanner} */ ( | 437 /** @type {!importer.MediaScanner} */ ( |
| 433 this.mediaScanner_), | 438 this.mediaScanner_), |
| 434 /** @type {!importer.ImportRunner} */ ( | 439 /** @type {!importer.ImportRunner} */ ( |
| 435 this.mediaImportHandler_), | 440 this.mediaImportHandler_), |
| 436 new importer.RuntimeCommandWidget()); | 441 new importer.RuntimeCommandWidget(), |
| 442 this.tracker_); |
| 437 } | 443 } |
| 438 }.bind(this)); | 444 }.bind(this)); |
| 439 | 445 |
| 440 assert(this.fileFilter_); | 446 assert(this.fileFilter_); |
| 441 assert(this.namingController_); | 447 assert(this.namingController_); |
| 442 assert(this.appStateController_); | 448 assert(this.appStateController_); |
| 443 assert(this.taskController_); | 449 assert(this.taskController_); |
| 444 this.mainWindowComponent_ = new MainWindowComponent( | 450 this.mainWindowComponent_ = new MainWindowComponent( |
| 445 this.dialogType, | 451 this.dialogType, |
| 446 this.ui_, | 452 this.ui_, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 loadTimeData.data = this.backgroundPage_.background.stringData; | 633 loadTimeData.data = this.backgroundPage_.background.stringData; |
| 628 if (util.runningInBrowser()) | 634 if (util.runningInBrowser()) |
| 629 this.backgroundPage_.registerDialog(window); | 635 this.backgroundPage_.registerDialog(window); |
| 630 this.fileOperationManager_ = | 636 this.fileOperationManager_ = |
| 631 this.backgroundPage_.background.fileOperationManager; | 637 this.backgroundPage_.background.fileOperationManager; |
| 632 this.mediaImportHandler_ = | 638 this.mediaImportHandler_ = |
| 633 this.backgroundPage_.background.mediaImportHandler; | 639 this.backgroundPage_.background.mediaImportHandler; |
| 634 this.mediaScanner_ = | 640 this.mediaScanner_ = |
| 635 this.backgroundPage_.background.mediaScanner; | 641 this.backgroundPage_.background.mediaScanner; |
| 636 this.historyLoader_ = this.backgroundPage_.background.historyLoader; | 642 this.historyLoader_ = this.backgroundPage_.background.historyLoader; |
| 643 this.tracker_ = this.backgroundPage_.background.tracker; |
| 637 callback(); | 644 callback(); |
| 638 }.bind(this)); | 645 }.bind(this)); |
| 639 }.bind(this))); | 646 }.bind(this))); |
| 640 }; | 647 }; |
| 641 | 648 |
| 642 /** | 649 /** |
| 643 * Initializes the VolumeManager instance. | 650 * Initializes the VolumeManager instance. |
| 644 * @param {function()} callback Completion callback. | 651 * @param {function()} callback Completion callback. |
| 645 * @private | 652 * @private |
| 646 */ | 653 */ |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; | 1290 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; |
| 1284 }.bind(this)); | 1291 }.bind(this)); |
| 1285 | 1292 |
| 1286 out += '2. VolumeManagerWrapper\n' + | 1293 out += '2. VolumeManagerWrapper\n' + |
| 1287 this.volumeManager_.toString() + '\n'; | 1294 this.volumeManager_.toString() + '\n'; |
| 1288 | 1295 |
| 1289 out += 'End of debug information.'; | 1296 out += 'End of debug information.'; |
| 1290 console.log(out); | 1297 console.log(out); |
| 1291 }; | 1298 }; |
| 1292 })(); | 1299 })(); |
| OLD | NEW |