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

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: 2011->2012 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 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/exif_parser.js ('k') | chrome/browser/resources/file_manager/js/function_parallel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698