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

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

Issue 9583009: [File Manager] Cleanup: Moving js/css/html files to dedicated directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698