Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 2930443002: Show confirmation dialog when copy/move operation affect other members. (Closed)
Patch Set: Remove some comment Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 */ 638 */
639 FileManager.prototype.initDataTransferOperations_ = function() { 639 FileManager.prototype.initDataTransferOperations_ = function() {
640 // CopyManager are required for 'Delete' operation in 640 // CopyManager are required for 'Delete' operation in
641 // Open and Save dialogs. But drag-n-drop and copy-paste are not needed. 641 // Open and Save dialogs. But drag-n-drop and copy-paste are not needed.
642 if (this.dialogType !== DialogType.FULL_PAGE) 642 if (this.dialogType !== DialogType.FULL_PAGE)
643 return; 643 return;
644 644
645 this.fileTransferController_ = new FileTransferController( 645 this.fileTransferController_ = new FileTransferController(
646 assert(this.document_), assert(this.ui_.listContainer), 646 assert(this.document_), assert(this.ui_.listContainer),
647 assert(this.ui_.directoryTree), this.ui_.multiProfileShareDialog, 647 assert(this.ui_.directoryTree), this.ui_.multiProfileShareDialog,
648 this.ui_.confirmationHandler.bind(this.ui_),
648 assert(this.fileBrowserBackground_.progressCenter), 649 assert(this.fileBrowserBackground_.progressCenter),
649 assert(this.fileOperationManager_), assert(this.metadataModel_), 650 assert(this.fileOperationManager_), assert(this.metadataModel_),
650 assert(this.thumbnailModel_), assert(this.directoryModel_), 651 assert(this.thumbnailModel_), assert(this.directoryModel_),
651 assert(this.volumeManager_), assert(this.selectionHandler_), 652 assert(this.volumeManager_), assert(this.selectionHandler_),
652 CommandUtil.shouldShowMenuItemsForEntry.bind( 653 CommandUtil.shouldShowMenuItemsForEntry.bind(
653 null, assert(this.volumeManager_))); 654 null, assert(this.volumeManager_)));
654 }; 655 };
655 656
656 /** 657 /**
657 * One-time initialization of commands. 658 * One-time initialization of commands.
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 FileManager.prototype.debugMe = function() { 1457 FileManager.prototype.debugMe = function() {
1457 var out = 'Debug information.\n'; 1458 var out = 'Debug information.\n';
1458 1459
1459 out += '1. VolumeManagerWrapper\n' + 1460 out += '1. VolumeManagerWrapper\n' +
1460 this.volumeManager_.toString() + '\n'; 1461 this.volumeManager_.toString() + '\n';
1461 1462
1462 out += 'End of debug information.'; 1463 out += 'End of debug information.';
1463 console.log(out); 1464 console.log(out);
1464 }; 1465 };
1465 })(); 1466 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698