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

Unified Diff: ui/file_manager/file_manager/foreground/js/thumbnail_loader.js

Issue 651403002: Fix trivial type-check errors in file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and correct a comment. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
diff --git a/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js b/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
index 28a15bd105a67d8abd4a5a9b0c1011eb4318d08f..01029474f86dd0edd7088cad7d3d2a9e88971296 100644
--- a/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
+++ b/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
@@ -9,7 +9,7 @@
* are attached as <canvas> element, while in IMAGE mode as <img>.
* <canvas> renders faster than <img>, however has bigger memory overhead.
*
- * @param {FileEntry} entry File entry.
+ * @param {Entry} entry File entry.
* @param {ThumbnailLoader.LoaderType=} opt_loaderType Canvas or Image loader,
* default: IMAGE.
* @param {Object=} opt_metadata Metadata object.
@@ -136,7 +136,7 @@ ThumbnailLoader.THUMBNAIL_MAX_HEIGHT = 500;
/**
* Loads and attaches an image.
*
- * @param {HTMLElement} box Container element.
+ * @param {Element} box Container element.
* @param {ThumbnailLoader.FillMode} fillMode Fill mode.
* @param {ThumbnailLoader.OptimizationMode=} opt_optimizationMode Optimization
* for downloading thumbnails. By default optimizations are disabled.
@@ -349,7 +349,7 @@ ThumbnailLoader.prototype.getImage = function() {
* to wait until the image loads and its dimensions are known, then manually
* position it at the center.
*
- * @param {HTMLElement} box Containing element.
+ * @param {Element} box Containing element.
* @param {Image|HTMLCanvasElement} img Element containing an image.
* @param {ThumbnailLoader.FillMode} fillMode Fill mode.
* @param {boolean} rotate True if the image should be rotated 90 degrees.

Powered by Google App Engine
This is Rietveld 408576698