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

Side by Side Diff: chrome/browser/resources/file_manager/js/file_copy_manager.js

Issue 12211123: [Cleanup] Files.app: Add missing semi-colons after function declaration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 if (chrome.extension) { 5 if (chrome.extension) {
6 var getContentWindows = function() { 6 var getContentWindows = function() {
7 return chrome.extension.getViews(); 7 return chrome.extension.getViews();
8 }; 8 };
9 } 9 }
10 10
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 var total = directories.length + files.length; 478 var total = directories.length + files.length;
479 var added = 0; 479 var added = 0;
480 480
481 results.isCut = (clipboard.isCut == 'true'); 481 results.isCut = (clipboard.isCut == 'true');
482 results.isOnDrive = (clipboard.isOnDrive == 'true'); 482 results.isOnDrive = (clipboard.isOnDrive == 'true');
483 483
484 util.getDirectories(self.root_, {create: false}, directories, onEntryFound, 484 util.getDirectories(self.root_, {create: false}, directories, onEntryFound,
485 onPathError); 485 onPathError);
486 util.getFiles(self.root_, {create: false}, files, onEntryFound, 486 util.getFiles(self.root_, {create: false}, files, onEntryFound,
487 onPathError); 487 onPathError);
488 } 488 };
489 489
490 if (clipboard.sourceDir) { 490 if (clipboard.sourceDir) {
491 this.root_.getDirectory(clipboard.sourceDir, 491 this.root_.getDirectory(clipboard.sourceDir,
492 {create: false}, 492 {create: false},
493 onSourceEntryFound, 493 onSourceEntryFound,
494 onPathError); 494 onPathError);
495 } else { 495 } else {
496 onSourceEntryFound(null); 496 onSourceEntryFound(null);
497 } 497 }
498 }; 498 };
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 }; 1054 };
1055 1055
1056 var tryZipSelection = function() { 1056 var tryZipSelection = function() {
1057 if (copyNumber > 0) 1057 if (copyNumber > 0)
1058 destPath = destName + ' (' + copyNumber + ').zip'; 1058 destPath = destName + ' (' + copyNumber + ').zip';
1059 1059
1060 // Check if the target exists. This kicks off the rest of the zip file 1060 // Check if the target exists. This kicks off the rest of the zip file
1061 // creation if the target is not found, or raises an error if it does. 1061 // creation if the target is not found, or raises an error if it does.
1062 util.resolvePath(task.targetDirEntry, destPath, onTargetExists, 1062 util.resolvePath(task.targetDirEntry, destPath, onTargetExists,
1063 onTargetNotResolved); 1063 onTargetNotResolved);
1064 } 1064 };
1065 1065
1066 tryZipSelection(); 1066 tryZipSelection();
1067 }; 1067 };
1068 1068
1069 /** 1069 /**
1070 * Copy the contents of sourceEntry into targetEntry. 1070 * Copy the contents of sourceEntry into targetEntry.
1071 * 1071 *
1072 * @private 1072 * @private
1073 * @param {Entry} sourceEntry entry that will be copied. 1073 * @param {Entry} sourceEntry entry that will be copied.
1074 * @param {Entry} targetEntry entry to which sourceEntry will be copied. 1074 * @param {Entry} targetEntry entry to which sourceEntry will be copied.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 */ 1254 */
1255 FileCopyManager.prototype.sendDeleteEvent_ = function(task, reason) { 1255 FileCopyManager.prototype.sendDeleteEvent_ = function(task, reason) {
1256 this.sendEvent_('delete', { 1256 this.sendEvent_('delete', {
1257 reason: reason, 1257 reason: reason,
1258 id: task.id, 1258 id: task.id,
1259 urls: task.entries.map(function(e) { 1259 urls: task.entries.map(function(e) {
1260 return util.makeFilesystemUrl(e.fullPath); 1260 return util.makeFilesystemUrl(e.fullPath);
1261 }) 1261 })
1262 }); 1262 });
1263 }; 1263 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698