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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 var controller = this.fileTransferController_ = new FileTransferController( | 541 var controller = this.fileTransferController_ = new FileTransferController( |
542 this.directoryModel_.getFileList(), | 542 this.directoryModel_.getFileList(), |
543 this.directoryModel_.getFileListSelection(), | 543 this.directoryModel_.getFileListSelection(), |
544 GridItem.bind(null, this), | 544 GridItem.bind(null, this), |
545 this.copyManager_, | 545 this.copyManager_, |
546 this.directoryModel_); | 546 this.directoryModel_); |
547 controller.attachDragSource(this.table_.list); | 547 controller.attachDragSource(this.table_.list); |
548 controller.attachDropTarget(this.table_.list); | 548 controller.attachDropTarget(this.table_.list); |
549 controller.attachDragSource(this.grid_); | 549 controller.attachDragSource(this.grid_); |
550 controller.attachDropTarget(this.grid_); | 550 controller.attachDropTarget(this.grid_); |
| 551 controller.attachDropTarget(this.rootsList_, true); |
551 controller.attachCopyPasteHandlers(this.document_); | 552 controller.attachCopyPasteHandlers(this.document_); |
552 controller.addEventListener('selection-copied', | 553 controller.addEventListener('selection-copied', |
553 this.blinkSelection.bind(this)); | 554 this.blinkSelection.bind(this)); |
554 controller.addEventListener('selection-cut', | 555 controller.addEventListener('selection-cut', |
555 this.blinkSelection.bind(this)); | 556 this.blinkSelection.bind(this)); |
556 }; | 557 }; |
557 | 558 |
558 /** | 559 /** |
559 * One-time initialization of commands. | 560 * One-time initialization of commands. |
560 */ | 561 */ |
(...skipping 3771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4332 | 4333 |
4333 handleSplitterDragEnd: function(e) { | 4334 handleSplitterDragEnd: function(e) { |
4334 Splitter.prototype.handleSplitterDragEnd.apply(this, arguments); | 4335 Splitter.prototype.handleSplitterDragEnd.apply(this, arguments); |
4335 this.ownerDocument.documentElement.classList.remove('col-resize'); | 4336 this.ownerDocument.documentElement.classList.remove('col-resize'); |
4336 } | 4337 } |
4337 }; | 4338 }; |
4338 | 4339 |
4339 customSplitter.decorate(splitterElement); | 4340 customSplitter.decorate(splitterElement); |
4340 }; | 4341 }; |
4341 })(); | 4342 })(); |
OLD | NEW |