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