// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-'use strict';
-
/**
* This class is an extended class, to manage the status of the dialogs.
*
/**
* @param {string} title Title.
* @param {string} message Message.
- * @param {function()} onOk Called when the OK button is pressed.
- * @param {function()} onCancel Called when the cancel button is pressed.
+ * @param {?function()} onOk Called when the OK button is pressed.
+ * @param {?function()} onCancel Called when the cancel button is pressed.
* @return {boolean} True if the dialog can show successfully. False if the
* dialog failed to show due to an existing dialog.
*/
/**
* @param {string} title Title.
* @param {string} message Message.
- * @param {function()} onOk Called when the OK button is pressed.
- * @param {function()} onCancel Called when the cancel button is pressed.
+ * @param {?function()} onOk Called when the OK button is pressed.
+ * @param {?function()} onCancel Called when the cancel button is pressed.
* @return {boolean} True if the dialog can show successfully. False if the
* dialog failed to show due to an existing dialog.
* @private
* dialog failed to show due to an existing dialog.
*/
FileManagerDialogBase.prototype.showBlankDialog = function() {
- return this.showImpl_('', '', null, null, null);
+ return this.showImpl_('', '', null, null);
};
/**
* dialog failed to show due to an existing dialog.
*/
FileManagerDialogBase.prototype.showTitleOnlyDialog = function(title) {
- return this.showImpl_(title, '', null, null, null);
+ return this.showImpl_(title, '', null, null);
};
/**
*/
FileManagerDialogBase.prototype.showTitleAndTextDialog = function(title, text) {
this.buttons.style.display = 'none';
- return this.showImpl_(title, text, null, null, null);
+ return this.showImpl_(title, text, null, null);
};
/**
- * @param {function()=} opt_onHide Called when the dialog is hidden.
+ * @param {Function=} opt_onHide Called when the dialog is hidden.
*/
FileManagerDialogBase.prototype.hide = function(opt_onHide) {
cr.ui.dialogs.BaseDialog.prototype.hide.call(