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

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

Issue 9452007: Enable rar, tar, tar.gz and tar.bz2 archive support in CrOS file manager. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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 // Setting the src of an img to an empty string can crash the browser, so we 5 // Setting the src of an img to an empty string can crash the browser, so we
6 // use an empty 1x1 gif instead. 6 // use an empty 1x1 gif instead.
7 const EMPTY_IMAGE_URI = 'data:image/gif;base64,' 7 const EMPTY_IMAGE_URI = 'data:image/gif;base64,'
8 + 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D'; 8 + 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D';
9 9
10 /** 10 /**
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 * thumbnail in the bottom panel (in pixels). 87 * thumbnail in the bottom panel (in pixels).
88 */ 88 */
89 const IMAGE_HOVER_PREVIEW_SIZE = 200; 89 const IMAGE_HOVER_PREVIEW_SIZE = 200;
90 90
91 /** 91 /**
92 * Translated strings. 92 * Translated strings.
93 */ 93 */
94 var localStrings; 94 var localStrings;
95 95
96 /** 96 /**
97 * Regexp for archive files. Used to show mount-archive task.
98 */
99 const ARCHIVES_REGEXP = /.zip$/;
100
101 /**
102 * Item for the Grid View. 97 * Item for the Grid View.
103 * @constructor 98 * @constructor
104 */ 99 */
105 function GridItem(fileManager, entry) { 100 function GridItem(fileManager, entry) {
106 var li = fileManager.document_.createElement('li'); 101 var li = fileManager.document_.createElement('li');
107 GridItem.decorate(li, fileManager, entry); 102 GridItem.decorate(li, fileManager, entry);
108 return li; 103 return li;
109 } 104 }
110 105
111 GridItem.prototype = { 106 GridItem.prototype = {
(...skipping 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 }); 3800 });
3806 }, onError); 3801 }, onError);
3807 3802
3808 function onError(err) { 3803 function onError(err) {
3809 console.log('Error while checking free space: ' + err); 3804 console.log('Error while checking free space: ' + err);
3810 setTimeout(doCheck, 1000 * 60); 3805 setTimeout(doCheck, 1000 * 60);
3811 } 3806 }
3812 } 3807 }
3813 } 3808 }
3814 })(); 3809 })();
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_file_browser_private_api.cc ('k') | chrome/browser/resources/file_manager/js/file_type.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698