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

Side by Side Diff: ui/file_manager/zip_archiver/js/app.js

Issue 2807063002: Replace Libarchive with MiniZip. (Closed)
Patch Set: Fix a few nits. Created 3 years, 8 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 2014 The Chromium OS Authors. All rights reserved. 1 // Copyright 2014 The Chromium OS 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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * The main namespace for the extension. 8 * The main namespace for the extension.
9 * @namespace 9 * @namespace
10 */ 10 */
(...skipping 12 matching lines...) Expand all
23 23
24 /** 24 /**
25 * Time in milliseconds before the notification about mounting is shown. 25 * Time in milliseconds before the notification about mounting is shown.
26 * @const {number} 26 * @const {number}
27 */ 27 */
28 MOUNTING_NOTIFICATION_DELAY: 1000, 28 MOUNTING_NOTIFICATION_DELAY: 1000,
29 29
30 /** 30 /**
31 * The default filename for .nmf file. 31 * The default filename for .nmf file.
32 * This value must not be const because it is overwritten in tests. 32 * This value must not be const because it is overwritten in tests.
33 * Since .nmf file is not available in .grd, we use .txt instead.
33 * @type {string} 34 * @type {string}
34 */ 35 */
35 DEFAULT_MODULE_NMF: 'module.nmf', 36 DEFAULT_MODULE_NMF: 'module.nmf.txt',
36 37
37 /** 38 /**
38 * The default MIME type for .nmf file. 39 * The default MIME type for .nmf file.
39 * @const {string} 40 * @const {string}
40 */ 41 */
41 DEFAULT_MODULE_TYPE: 'application/x-pnacl', 42 DEFAULT_MODULE_TYPE: 'application/x-pnacl',
42 43
43 /** 44 /**
44 * Multiple volumes can be opened at the same time. 45 * Multiple volumes can be opened at the same time.
45 * @type {!Object<!unpacker.types.FileSystemId, !unpacker.Volume>} 46 * @type {!Object<!unpacker.types.FileSystemId, !unpacker.Volume>}
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 }, 832 },
832 833
833 /** 834 /**
834 * Saves the state before suspending the event page, so we can resume it 835 * Saves the state before suspending the event page, so we can resume it
835 * once new events arrive. 836 * once new events arrive.
836 */ 837 */
837 onSuspend: function() { 838 onSuspend: function() {
838 unpacker.app.saveState_(Object.keys(unpacker.app.volumes)); 839 unpacker.app.saveState_(Object.keys(unpacker.app.volumes));
839 } 840 }
840 }; 841 };
OLDNEW
« no previous file with comments | « ui/file_manager/zip_archiver/html/passphrase-dialog.html ('k') | ui/file_manager/zip_archiver/js/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698