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

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: Rebase. 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
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ba3d786f1561c776f00fc5516a76b3b4a22ead00..0e775a5e0d6c6f8ea568f24884216ab6056f5e9c 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -783,7 +783,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.
@@ -983,7 +983,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));
@@ -991,7 +991,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');
}
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698