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

Unified Diff: ui/file_manager/file_manager/common/js/util.js

Issue 801533006: Add type annotations to gallery/js/gallery.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed false-positive lint errors. 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/file_manager/common/js/util.js
diff --git a/ui/file_manager/file_manager/common/js/util.js b/ui/file_manager/file_manager/common/js/util.js
index de6afcd970db2820abd68449f7f744fa2429d910..282eac03eaef752fb4bdaa801d3321b8c98aad57 100644
--- a/ui/file_manager/file_manager/common/js/util.js
+++ b/ui/file_manager/file_manager/common/js/util.js
@@ -288,9 +288,9 @@ util.createChild = function(parent, opt_className, opt_tag) {
/**
* Updates the app state.
*
- * @param {string} currentDirectoryURL Currently opened directory as an URL.
+ * @param {?string} currentDirectoryURL Currently opened directory as an URL.
* If null the value is left unchanged.
- * @param {string} selectionURL Currently selected entry as an URL. If null the
+ * @param {?string} selectionURL Currently selected entry as an URL. If null the
* value is left unchanged.
* @param {string|Object=} opt_param Additional parameters, to be stored. If
* null, then left unchanged.
@@ -727,8 +727,8 @@ util.comparePath = function(entry1, entry2) {
/**
* Checks if {@code entry} is an immediate child of {@code directory}.
*
- * @param {?DirectoryEntry} directory The presumptive parent.
- * @param {?Entry} entry The presumptive child.
+ * @param {Entry} entry The presumptive child.
+ * @param {DirectoryEntry} directory The presumptive parent.
* @return {!Promise.<boolean>} Resolves with true if {@code directory} is
* parent of {@code entry}.
*/
« no previous file with comments | « ui/file_manager/externs/gallery_foreground.js ('k') | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698