| Index: ui/file_manager/gallery/js/slide_mode.js
|
| diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js
|
| index c8bc8eba71b9e121b71aadb0a9aabefdebc3c9d7..af4240eabe8a0606539ab8a8222ca3ea752cc6f3 100644
|
| --- a/ui/file_manager/gallery/js/slide_mode.js
|
| +++ b/ui/file_manager/gallery/js/slide_mode.js
|
| @@ -781,7 +781,7 @@ SlideMode.prototype.loadSelectedItem_ = function() {
|
| return false;
|
|
|
| // Always prefetch if the previous load was from cache.
|
| - if (loadType === ImageView.LOAD_TYPE_CACHED_FULL)
|
| + if (loadType === ImageView.LoadType.CACHED_FULL)
|
| return true;
|
|
|
| // Prefetch if we have been going in the same direction for long enough.
|
| @@ -981,7 +981,7 @@ SlideMode.prototype.itemLoaded_ = function(
|
| var metadata = item.getMetadata();
|
|
|
| this.showSpinner_(false);
|
| - if (loadType === ImageView.LOAD_TYPE_ERROR) {
|
| + if (loadType === ImageView.LoadType.ERROR) {
|
| // if we have a specific error, then display it
|
| if (opt_error) {
|
| this.errorBanner_.show(/** @type {string} */ (opt_error));
|
| @@ -989,7 +989,7 @@ SlideMode.prototype.itemLoaded_ = function(
|
| // otherwise try to infer general error
|
| this.errorBanner_.show('GALLERY_IMAGE_ERROR');
|
| }
|
| - } else if (loadType === ImageView.LOAD_TYPE_OFFLINE) {
|
| + } else if (loadType === ImageView.LoadType.OFFLINE) {
|
| this.errorBanner_.show('GALLERY_IMAGE_OFFLINE');
|
| }
|
|
|
|
|