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

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

Issue 12262003: [Cleanup] Files.app: Adds missing periods at the end of the descriptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 util.addPageLoadHandler(function() { 5 util.addPageLoadHandler(function() {
6 if (!location.hash) 6 if (!location.hash)
7 return; 7 return;
8 8
9 var pageState; 9 var pageState;
10 if (location.search) { 10 if (location.search) {
(...skipping 20 matching lines...) Expand all
31 * Gallery for viewing and editing image files. 31 * Gallery for viewing and editing image files.
32 * 32 *
33 * @param {Object} context Object containing the following: 33 * @param {Object} context Object containing the following:
34 * {function(string)} onNameChange Called every time a selected 34 * {function(string)} onNameChange Called every time a selected
35 * item name changes (on rename and on selection change). 35 * item name changes (on rename and on selection change).
36 * {function} onClose 36 * {function} onClose
37 * {MetadataCache} metadataCache 37 * {MetadataCache} metadataCache
38 * {Array.<Object>} shareActions 38 * {Array.<Object>} shareActions
39 * {string} readonlyDirName Directory name for readonly warning or null. 39 * {string} readonlyDirName Directory name for readonly warning or null.
40 * {DirEntry} saveDirEntry Directory to save to. 40 * {DirEntry} saveDirEntry Directory to save to.
41 * {function(string)} displayStringFunction 41 * {function(string)} displayStringFunction.
42 * @class 42 * @class
43 * @constructor 43 * @constructor
44 */ 44 */
45 function Gallery(context) { 45 function Gallery(context) {
46 this.container_ = document.querySelector('.gallery'); 46 this.container_ = document.querySelector('.gallery');
47 this.document_ = document; 47 this.document_ = document;
48 this.context_ = context; 48 this.context_ = context;
49 this.metadataCache_ = context.metadataCache; 49 this.metadataCache_ = context.metadataCache;
50 this.volumeManager_ = VolumeManager.getInstance(); 50 this.volumeManager_ = VolumeManager.getInstance();
51 51
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 break; 783 break;
784 784
785 case 13: // Enter 785 case 13: // Enter
786 this.filenameEdit_.blur(); 786 this.filenameEdit_.blur();
787 break; 787 break;
788 } 788 }
789 event.stopPropagation(); 789 event.stopPropagation();
790 }; 790 };
791 791
792 /** 792 /**
793 * @return {boolean} True if file renaming is currently in progress 793 * @return {boolean} True if file renaming is currently in progress.
794 * @private 794 * @private
795 */ 795 */
796 Gallery.prototype.isRenaming_ = function() { 796 Gallery.prototype.isRenaming_ = function() {
797 return this.filenameSpacer_.hasAttribute('renaming'); 797 return this.filenameSpacer_.hasAttribute('renaming');
798 }; 798 };
799 799
800 /** 800 /**
801 * Content area click handler. 801 * Content area click handler.
802 * @private 802 * @private
803 */ 803 */
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 Gallery.prototype.updateThumbnails_ = function() { 884 Gallery.prototype.updateThumbnails_ = function() {
885 if (this.currentMode_ == this.slideMode_) 885 if (this.currentMode_ == this.slideMode_)
886 this.slideMode_.updateThumbnails(); 886 this.slideMode_.updateThumbnails();
887 887
888 if (this.mosaicMode_) { 888 if (this.mosaicMode_) {
889 var mosaic = this.mosaicMode_.getMosaic(); 889 var mosaic = this.mosaicMode_.getMosaic();
890 if (mosaic.isInitialized()) 890 if (mosaic.isInitialized())
891 mosaic.reload(); 891 mosaic.reload();
892 } 892 }
893 }; 893 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698