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 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2521 selectedUrl, | 2521 selectedUrl, |
2522 function(name) { | 2522 function(name) { |
2523 self.updateLocation_(true /*replace*/, dirPath + '/' + name); | 2523 self.updateLocation_(true /*replace*/, dirPath + '/' + name); |
2524 }, | 2524 }, |
2525 function () { history.back(1) }, | 2525 function () { history.back(1) }, |
2526 self.metadataProvider_, | 2526 self.metadataProvider_, |
2527 shareActions, | 2527 shareActions, |
2528 str); | 2528 str); |
2529 }; | 2529 }; |
2530 | 2530 |
2531 galleryFrame.src = 'js/image_editor/gallery.html'; | 2531 galleryFrame.src = 'gallery.html'; |
2532 this.openFilePopup_(galleryFrame); | 2532 this.openFilePopup_(galleryFrame); |
2533 }; | 2533 }; |
2534 | 2534 |
2535 /** | 2535 /** |
2536 * Update the breadcrumb display to reflect the current directory. | 2536 * Update the breadcrumb display to reflect the current directory. |
2537 */ | 2537 */ |
2538 FileManager.prototype.updateBreadcrumbs_ = function() { | 2538 FileManager.prototype.updateBreadcrumbs_ = function() { |
2539 var bc = this.dialogDom_.querySelector('.breadcrumbs'); | 2539 var bc = this.dialogDom_.querySelector('.breadcrumbs'); |
2540 removeChildren(bc); | 2540 removeChildren(bc); |
2541 | 2541 |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3932 }); | 3932 }); |
3933 }, onError); | 3933 }, onError); |
3934 | 3934 |
3935 function onError(err) { | 3935 function onError(err) { |
3936 console.log('Error while checking free space: ' + err); | 3936 console.log('Error while checking free space: ' + err); |
3937 setTimeout(doCheck, 1000 * 60); | 3937 setTimeout(doCheck, 1000 * 60); |
3938 } | 3938 } |
3939 } | 3939 } |
3940 } | 3940 } |
3941 })(); | 3941 })(); |
OLD | NEW |