| 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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 var directoryTree = /** @type {DirectoryTree} */ | 939 var directoryTree = /** @type {DirectoryTree} */ |
| 940 (this.dialogDom_.querySelector('#directory-tree')); | 940 (this.dialogDom_.querySelector('#directory-tree')); |
| 941 var fakeEntriesVisible = | 941 var fakeEntriesVisible = |
| 942 this.dialogType !== DialogType.SELECT_SAVEAS_FILE; | 942 this.dialogType !== DialogType.SELECT_SAVEAS_FILE; |
| 943 DirectoryTree.decorate(directoryTree, | 943 DirectoryTree.decorate(directoryTree, |
| 944 assert(this.directoryModel_), | 944 assert(this.directoryModel_), |
| 945 assert(this.volumeManager_), | 945 assert(this.volumeManager_), |
| 946 assert(this.metadataModel_), | 946 assert(this.metadataModel_), |
| 947 fakeEntriesVisible); | 947 fakeEntriesVisible); |
| 948 directoryTree.dataModel = new NavigationListModel( | 948 directoryTree.dataModel = new NavigationListModel( |
| 949 this.volumeManager_, this.folderShortcutsModel_); | 949 this.volumeManager_, |
| 950 this.folderShortcutsModel_, |
| 951 new NavigationModelCommandItem( |
| 952 util.queryDecoratedElement('#add-new-services', cr.ui.Command))); |
| 950 | 953 |
| 951 this.ui_.initDirectoryTree(directoryTree); | 954 this.ui_.initDirectoryTree(directoryTree); |
| 952 }; | 955 }; |
| 953 | 956 |
| 954 /** | 957 /** |
| 955 * Sets up the current directory during initialization. | 958 * Sets up the current directory during initialization. |
| 956 * @private | 959 * @private |
| 957 */ | 960 */ |
| 958 FileManager.prototype.setupCurrentDirectory_ = function() { | 961 FileManager.prototype.setupCurrentDirectory_ = function() { |
| 959 var tracker = this.directoryModel_.createDirectoryChangeTracker(); | 962 var tracker = this.directoryModel_.createDirectoryChangeTracker(); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; | 1298 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; |
| 1296 }.bind(this)); | 1299 }.bind(this)); |
| 1297 | 1300 |
| 1298 out += '2. VolumeManagerWrapper\n' + | 1301 out += '2. VolumeManagerWrapper\n' + |
| 1299 this.volumeManager_.toString() + '\n'; | 1302 this.volumeManager_.toString() + '\n'; |
| 1300 | 1303 |
| 1301 out += 'End of debug information.'; | 1304 out += 'End of debug information.'; |
| 1302 console.log(out); | 1305 console.log(out); |
| 1303 }; | 1306 }; |
| 1304 })(); | 1307 })(); |
| OLD | NEW |