| 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. | 9 * dialogs, as well as the full screen file manager application. |
| 10 * | 10 * |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 FileManager.prototype.initAdditionalUI_ = function() { | 872 FileManager.prototype.initAdditionalUI_ = function() { |
| 873 assert(this.metadataModel_); | 873 assert(this.metadataModel_); |
| 874 assert(this.volumeManager_); | 874 assert(this.volumeManager_); |
| 875 assert(this.historyLoader_); | 875 assert(this.historyLoader_); |
| 876 assert(this.dialogDom_); | 876 assert(this.dialogDom_); |
| 877 | 877 |
| 878 // Cache nodes we'll be manipulating. | 878 // Cache nodes we'll be manipulating. |
| 879 var dom = this.dialogDom_; | 879 var dom = this.dialogDom_; |
| 880 assert(dom); | 880 assert(dom); |
| 881 | 881 |
| 882 // Initialize the dialog. | |
| 883 FileManagerDialogBase.setFileManager(this); | |
| 884 | |
| 885 var table = queryRequiredElement('.detail-table', dom); | 882 var table = queryRequiredElement('.detail-table', dom); |
| 886 FileTable.decorate( | 883 FileTable.decorate( |
| 887 table, | 884 table, |
| 888 this.metadataModel_, | 885 this.metadataModel_, |
| 889 this.volumeManager_, | 886 this.volumeManager_, |
| 890 this.historyLoader_, | 887 this.historyLoader_, |
| 891 this.dialogType == DialogType.FULL_PAGE); | 888 this.dialogType == DialogType.FULL_PAGE); |
| 892 var grid = queryRequiredElement('.thumbnail-grid', dom); | 889 var grid = queryRequiredElement('.thumbnail-grid', dom); |
| 893 FileGrid.decorate( | 890 FileGrid.decorate( |
| 894 grid, | 891 grid, |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 FileManager.prototype.debugMe = function() { | 1468 FileManager.prototype.debugMe = function() { |
| 1472 var out = 'Debug information.\n'; | 1469 var out = 'Debug information.\n'; |
| 1473 | 1470 |
| 1474 out += '1. VolumeManagerWrapper\n' + | 1471 out += '1. VolumeManagerWrapper\n' + |
| 1475 this.volumeManager_.toString() + '\n'; | 1472 this.volumeManager_.toString() + '\n'; |
| 1476 | 1473 |
| 1477 out += 'End of debug information.'; | 1474 out += 'End of debug information.'; |
| 1478 console.log(out); | 1475 console.log(out); |
| 1479 }; | 1476 }; |
| 1480 })(); | 1477 })(); |
| OLD | NEW |