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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 529 |
530 var controller = this.fileTransferController_ = new FileTransferController( | 530 var controller = this.fileTransferController_ = new FileTransferController( |
531 GridItem.bind(null, this, false /* no checkbox */), | 531 GridItem.bind(null, this, false /* no checkbox */), |
532 this.copyManager_, | 532 this.copyManager_, |
533 this.directoryModel_); | 533 this.directoryModel_); |
534 controller.attachDragSource(this.table_.list); | 534 controller.attachDragSource(this.table_.list); |
535 controller.attachDropTarget(this.table_.list); | 535 controller.attachDropTarget(this.table_.list); |
536 controller.attachDragSource(this.grid_); | 536 controller.attachDragSource(this.grid_); |
537 controller.attachDropTarget(this.grid_); | 537 controller.attachDropTarget(this.grid_); |
538 controller.attachDropTarget(this.rootsList_, true); | 538 controller.attachDropTarget(this.rootsList_, true); |
| 539 controller.attachBreadcrumbsDropTarget(this.breadcrumbs_); |
539 controller.attachCopyPasteHandlers(this.document_); | 540 controller.attachCopyPasteHandlers(this.document_); |
540 controller.addEventListener('selection-copied', | 541 controller.addEventListener('selection-copied', |
541 this.blinkSelection.bind(this)); | 542 this.blinkSelection.bind(this)); |
542 controller.addEventListener('selection-cut', | 543 controller.addEventListener('selection-cut', |
543 this.blinkSelection.bind(this)); | 544 this.blinkSelection.bind(this)); |
544 }; | 545 }; |
545 | 546 |
546 /** | 547 /** |
547 * One-time initialization of commands. | 548 * One-time initialization of commands. |
548 */ | 549 */ |
(...skipping 3682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4231 } | 4232 } |
4232 | 4233 |
4233 var defaultActionSeparator = | 4234 var defaultActionSeparator = |
4234 this.dialogDom_.querySelector('#default-action-separator'); | 4235 this.dialogDom_.querySelector('#default-action-separator'); |
4235 | 4236 |
4236 this.defaultActionMenuItem_.hidden = !taskItem; | 4237 this.defaultActionMenuItem_.hidden = !taskItem; |
4237 defaultActionSeparator.hidden = !taskItem; | 4238 defaultActionSeparator.hidden = !taskItem; |
4238 } | 4239 } |
4239 })(); | 4240 })(); |
4240 | 4241 |
OLD | NEW |