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

Unified Diff: ui/file_manager/gallery/js/slide_mode.js

Issue 792733002: Add type annotations to gallery/js/image_editor/image_view.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
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');
}

Powered by Google App Engine
This is Rietveld 408576698