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

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

Issue 11309014: File manager: support for zipping selected files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Set the pending bytes for zip task to zero. TODO: need to implement per-entry progress update to tr… Created 8 years, 1 month 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_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 94ea4cbbfa07dd36d823e5c6c9103cffaef64239..e1362a31621fd70c3998d520d1857007f4fa97d8 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -573,7 +573,10 @@ DialogType.isModal = function(type) {
Commands.pasteFileCommand, doc, this.fileTransferController_);
CommandUtil.registerCommand(doc, 'open-with',
- Commands.openWithCommand, this);
+ Commands.openWithCommand, this);
+
+ CommandUtil.registerCommand(doc, 'zip-selection',
+ Commands.zipSelectionCommand, this);
CommandUtil.registerCommand(doc, 'cut', Commands.defaultCommand, doc);
CommandUtil.registerCommand(doc, 'copy', Commands.defaultCommand, doc);
@@ -730,7 +733,7 @@ DialogType.isModal = function(type) {
this.dialogDom_.querySelector('#default-action');
this.openWithCommand_ =
- this.dialogDom_.querySelector('#open-with');
+ this.dialogDom_.querySelector('#open-with');
this.defaultActionMenuItem_.addEventListener('activate',
this.dispatchSelectionAction_.bind(this));

Powered by Google App Engine
This is Rietveld 408576698