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

Unified Diff: chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js

Issue 10828153: Change butter bar message depending on the type of operation and the number of files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debug output. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js
diff --git a/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js b/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js
index 704fdd41fc1797be211cb2563ec681b670417ca6..671d9bb05dc575a28925d980a0c6573334d94c6d 100644
--- a/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js
+++ b/chrome/browser/resources/file_manager/js/file_copy_manager_wrapper.js
@@ -70,20 +70,6 @@ FileCopyManagerWrapper.prototype.onEvent = function(eventName, eventArgs) {
};
/**
- * Get the overall progress data of all queued copy tasks.
- * @return {Object} An object containing the following parameters:
- * percentage - The percentage (0-1) of finished items.
- * pendingItems - The number of pending/unfinished items.
- */
-FileCopyManagerWrapper.prototype.getProgress = function() {
- var cm = this.getCopyManagerSync_();
- if (cm)
- return cm.getProgress();
-
- return {percentage: NaN, pendingItems: 0};
-};
-
-/**
* @return {Object} Status object.
*/
FileCopyManagerWrapper.prototype.getStatus = function() {
@@ -105,7 +91,12 @@ FileCopyManagerWrapper.prototype.getStatus = function() {
totalItems: 0,
totalFiles: 0,
totalDirectories: 0,
- totalBytes: 0
+ totalBytes: 0,
+
+ percentage: NaN,
+ pendingCopies: 0,
+ pendingMoves: 0,
+ filename: '' // In case pendingItems == 1
};
};
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_copy_manager.js ('k') | chrome/browser/resources/file_manager/js/mock_chrome.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698