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

Unified Diff: chrome/browser/resources/file_manager/js/metadata/function_parallel.js

Issue 12255010: [Cleanup] Files.app: Fill missing type annotation in @param tag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/metadata/function_sequence.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/metadata/function_parallel.js
diff --git a/chrome/browser/resources/file_manager/js/metadata/function_parallel.js b/chrome/browser/resources/file_manager/js/metadata/function_parallel.js
index 7cde5d2cfaa2eedbbe5425af83966ae227f811ca..924c31065e3c3b7300989973f99f163fa7325c05 100644
--- a/chrome/browser/resources/file_manager/js/metadata/function_parallel.js
+++ b/chrome/browser/resources/file_manager/js/metadata/function_parallel.js
@@ -3,14 +3,14 @@
// found in the LICENSE file.
/**
- * @constructor
* @class FunctionSequence to invoke steps in sequence
*
* @param {string} name //TODO(JSDOC).
- * @param steps array of functions to invoke in parallel.
+ * @param {Array.<function>} steps Array of functions to invoke in parallel.
* @param {Object} logger //TODO(JSDOC).
- * @param callback callback to invoke on success.
- * @param failureCallback callback to invoke on failure.
+ * @param {function()} callback Callback to invoke on success.
+ * @param {function(string)} failureCallback Callback to invoke on failure.
+ * @constructor
*/
function FunctionParallel(name, steps, logger, callback, failureCallback) {
// Private variables hidden in closure
@@ -33,8 +33,8 @@ function FunctionParallel(name, steps, logger, callback, failureCallback) {
/**
* Error handling function, which fires error callback.
*
+ * @param {string} err Error message
* @private
- * @param err error message.
*/
FunctionParallel.prototype.onError_ = function(err) {
if (!this.failed_) {
@@ -47,6 +47,7 @@ FunctionParallel.prototype.onError_ = function(err) {
* Advances to next step. This method should not be used externally. In external
* cases should be used nextStep function, which is defined in closure and thus
* has access to internal variables of functionsequence.
+ *
* @private
*/
FunctionParallel.prototype.nextStep_ = function() {
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/metadata/function_sequence.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698