OLD | NEW |
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 2236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2247 } | 2247 } |
2248 return undefined; | 2248 return undefined; |
2249 }; | 2249 }; |
2250 | 2250 |
2251 FileManager.prototype.openGallery_ = function(urls, shareActions, type) { | 2251 FileManager.prototype.openGallery_ = function(urls, shareActions, type) { |
2252 var self = this; | 2252 var self = this; |
2253 | 2253 |
2254 var galleryFrame = this.document_.createElement('iframe'); | 2254 var galleryFrame = this.document_.createElement('iframe'); |
2255 galleryFrame.className = 'overlay-pane'; | 2255 galleryFrame.className = 'overlay-pane'; |
2256 galleryFrame.scrolling = 'no'; | 2256 galleryFrame.scrolling = 'no'; |
| 2257 galleryFrame.setAttribute('webkitallowfullscreen', true); |
2257 | 2258 |
2258 var selectedUrl; | 2259 var selectedUrl; |
2259 if (urls.length == 1) { | 2260 if (urls.length == 1) { |
2260 // Single item selected. Pass to the Gallery as a selected. | 2261 // Single item selected. Pass to the Gallery as a selected. |
2261 selectedUrl = urls[0]; | 2262 selectedUrl = urls[0]; |
2262 // Pass every image in the directory so that it shows up in the ribbon. | 2263 // Pass every image in the directory so that it shows up in the ribbon. |
2263 urls = []; | 2264 urls = []; |
2264 var dm = this.directoryModel_.fileList; | 2265 var dm = this.directoryModel_.fileList; |
2265 for (var i = 0; i != dm.length; i++) { | 2266 for (var i = 0; i != dm.length; i++) { |
2266 var entry = dm.item(i); | 2267 var entry = dm.item(i); |
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3625 }); | 3626 }); |
3626 }, onError); | 3627 }, onError); |
3627 | 3628 |
3628 function onError(err) { | 3629 function onError(err) { |
3629 console.log('Error while checking free space: ' + err); | 3630 console.log('Error while checking free space: ' + err); |
3630 setTimeout(doCheck, 1000 * 60); | 3631 setTimeout(doCheck, 1000 * 60); |
3631 } | 3632 } |
3632 } | 3633 } |
3633 } | 3634 } |
3634 })(); | 3635 })(); |
OLD | NEW |