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