Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / file_manager / file_manager / foreground / js / ui / file_manager_dialog_base.js
index 94b40eb..bb7c83a 100644 (file)
@@ -2,8 +2,6 @@
 // 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.
  *
@@ -46,8 +44,8 @@ FileManagerDialogBase.shown = false;
 /**
  * @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.
  */
@@ -59,8 +57,8 @@ FileManagerDialogBase.prototype.showOkCancelDialog = function(
 /**
  * @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
@@ -84,7 +82,7 @@ FileManagerDialogBase.prototype.showImpl_ = function(
  *     dialog failed to show due to an existing dialog.
  */
 FileManagerDialogBase.prototype.showBlankDialog = function() {
-  return this.showImpl_('', '', null, null, null);
+  return this.showImpl_('', '', null, null);
 };
 
 /**
@@ -93,7 +91,7 @@ FileManagerDialogBase.prototype.showBlankDialog = function() {
  *     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);
 };
 
 /**
@@ -104,11 +102,11 @@ FileManagerDialogBase.prototype.showTitleOnlyDialog = function(title) {
  */
 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(