| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 this.gearMenuController_ = null; | 179 this.gearMenuController_ = null; |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * Toolbar controller. | 182 * Toolbar controller. |
| 183 * @type {ToolbarController} | 183 * @type {ToolbarController} |
| 184 * @private | 184 * @private |
| 185 */ | 185 */ |
| 186 this.toolbarController_ = null; | 186 this.toolbarController_ = null; |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * Empty folder controller. |
| 190 * @private {EmptyFolderController} |
| 191 */ |
| 192 this.emptyFolderController_ = null; |
| 193 |
| 194 /** |
| 189 * App state controller. | 195 * App state controller. |
| 190 * @type {AppStateController} | 196 * @type {AppStateController} |
| 191 * @private | 197 * @private |
| 192 */ | 198 */ |
| 193 this.appStateController_ = null; | 199 this.appStateController_ = null; |
| 194 | 200 |
| 195 /** | 201 /** |
| 196 * Dialog action controller. | 202 * Dialog action controller. |
| 197 * @type {DialogActionController} | 203 * @type {DialogActionController} |
| 198 * @private | 204 * @private |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 this.ui_.gearButton, | 427 this.ui_.gearButton, |
| 422 this.ui_.gearMenu, | 428 this.ui_.gearMenu, |
| 423 this.directoryModel_, | 429 this.directoryModel_, |
| 424 this.commandHandler); | 430 this.commandHandler); |
| 425 this.toolbarController_ = new ToolbarController( | 431 this.toolbarController_ = new ToolbarController( |
| 426 this.ui_.toolbar, | 432 this.ui_.toolbar, |
| 427 this.ui_.dialogNavigationList, | 433 this.ui_.dialogNavigationList, |
| 428 assert(this.ui_.locationLine), | 434 assert(this.ui_.locationLine), |
| 429 this.selectionHandler_, | 435 this.selectionHandler_, |
| 430 this.directoryModel_); | 436 this.directoryModel_); |
| 437 this.emptyFolderController_ = new EmptyFolderController( |
| 438 this.ui_.emptyFolder, |
| 439 this.directoryModel_); |
| 431 | 440 |
| 432 importer.importEnabled().then( | 441 importer.importEnabled().then( |
| 433 function(enabled) { | 442 function(enabled) { |
| 434 if (enabled) { | 443 if (enabled) { |
| 435 this.importController_ = new importer.ImportController( | 444 this.importController_ = new importer.ImportController( |
| 436 new importer.RuntimeControllerEnvironment( | 445 new importer.RuntimeControllerEnvironment( |
| 437 this, | 446 this, |
| 438 this.selectionHandler_), | 447 this.selectionHandler_), |
| 439 this.mediaScanner_, | 448 this.mediaScanner_, |
| 440 this.mediaImportHandler_, | 449 this.mediaImportHandler_, |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; | 1309 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; |
| 1301 }.bind(this)); | 1310 }.bind(this)); |
| 1302 | 1311 |
| 1303 out += '2. VolumeManagerWrapper\n' + | 1312 out += '2. VolumeManagerWrapper\n' + |
| 1304 this.volumeManager_.toString() + '\n'; | 1313 this.volumeManager_.toString() + '\n'; |
| 1305 | 1314 |
| 1306 out += 'End of debug information.'; | 1315 out += 'End of debug information.'; |
| 1307 console.log(out); | 1316 console.log(out); |
| 1308 }; | 1317 }; |
| 1309 })(); | 1318 })(); |
| OLD | NEW |