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

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

Issue 801533006: Add type annotations to gallery/js/gallery.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary annotations. 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 0e775a5e0d6c6f8ea568f24884216ab6056f5e9c..96f1c3c7e123304f28a8ed06da7070954fdb104f 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -20,6 +20,7 @@
* function.
* @constructor
* @struct
+ * @extends {cr.EventTarget}
*/
function SlideMode(container, content, toolbar, prompt, errorBanner, dataModel,
selectionModel, context, volumeManager, toggleMode, displayStringFunction) {
@@ -504,7 +505,7 @@ SlideMode.prototype.getViewport = function() { return this.viewport_; };
/**
* Load items, display the selected item.
- * @param {!ImageRect} zoomFromRect Rectangle for zoom effect.
+ * @param {ImageRect} zoomFromRect Rectangle for zoom effect.
* @param {function()} displayCallback Called when the image is displayed.
* @param {function()} loadCallback Called when the image is displayed.
*/
@@ -592,7 +593,7 @@ SlideMode.prototype.enter = function(
/**
* Leave the mode.
- * @param {!ImageRect} zoomToRect Rectangle for zoom effect.
+ * @param {ImageRect} zoomToRect Rectangle for zoom effect.
* @param {function()} callback Called when the image is committed and
* the zoom-out animation has started.
*/
@@ -1074,13 +1075,6 @@ SlideMode.prototype.requestPrefetch = function(direction, delay) {
// Event handlers.
/**
- * Unload handler, to be called from the top frame.
- * @param {boolean} exiting True if the app is exiting.
- */
-SlideMode.prototype.onUnload = function(exiting) {
-};
-
-/**
* Click handler for the image container.
*
* @param {!Event} event Mouse click event.
« ui/file_manager/gallery/js/gallery.js ('K') | « ui/file_manager/gallery/js/mosaic_mode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698