| Index: ui/file_manager/gallery/js/gallery.js
|
| diff --git a/ui/file_manager/gallery/js/gallery.js b/ui/file_manager/gallery/js/gallery.js
|
| index e343389df27770c8ed4d275fdce861700b5179f7..7e4bd347e8e98d842df83d23a51b8f6f11eab4ee 100644
|
| --- a/ui/file_manager/gallery/js/gallery.js
|
| +++ b/ui/file_manager/gallery/js/gallery.js
|
| @@ -318,7 +318,7 @@ Gallery.prototype.loadInternal_ = function(entries, selectedEntries) {
|
| var locationInfo = this.volumeManager_.getLocationInfo(entries[i]);
|
| if (!locationInfo) // Skip the item, since gone.
|
| return;
|
| - items.push(new Gallery.Item(
|
| + items.push(new GalleryItem(
|
| entries[i],
|
| locationInfo,
|
| null,
|
| @@ -446,14 +446,10 @@ Gallery.prototype.onUserAction_ = function() {
|
| * @return {Gallery.Mode}
|
| */
|
| Gallery.prototype.getCurrentMode = function() {
|
| - switch (/** @type {(SlideMode|ThumbnailMode)} */ (this.currentMode_)) {
|
| - case this.slideMode_:
|
| - return Gallery.Mode.SLIDE;
|
| - case this.thumbnailMode_:
|
| - return Gallery.Mode.THUMBNAIL;
|
| - default:
|
| - assertNotReached();
|
| - }
|
| + assert(this.currentMode_ === this.slideMode_ ||
|
| + this.currentMode_ === this.thumbnailMode_);
|
| + return this.currentMode_ === this.slideMode_ ?
|
| + Gallery.Mode.SLIDE : Gallery.Mode.THUMBNAIL;
|
| };
|
|
|
| /**
|
| @@ -660,7 +656,7 @@ Gallery.prototype.delete_ = function() {
|
| };
|
|
|
| /**
|
| - * @return {!Array<Gallery.Item>} Current selection.
|
| + * @return {!Array<GalleryItem>} Current selection.
|
| */
|
| Gallery.prototype.getSelectedItems = function() {
|
| return this.selectionModel_.selectedIndexes.map(
|
| @@ -677,7 +673,7 @@ Gallery.prototype.getSelectedEntries = function() {
|
| };
|
|
|
| /**
|
| - * @return {?Gallery.Item} Current single selection.
|
| + * @return {?GalleryItem} Current single selection.
|
| */
|
| Gallery.prototype.getSingleSelectedItem = function() {
|
| var items = this.getSelectedItems();
|
|
|