Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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. | |
|
mtomasz
2017/04/10 07:15:10
This sounds like a workaround. Is there a bug file
takise
2017/04/11 06:00:52
This is the way ImageLoader loads .pexe file. I re
mtomasz
2017/04/11 06:36:45
Got it. If we already do that, then let's keep it
| |
| 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 Loading... | |
| 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 }; |
| OLD | NEW |