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

Unified Diff: chrome/browser/resources/file_manager/js/butter_bar.js

Issue 12212187: [Cleanup] Files.app: Misc style fixes in Javascript code. (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
Index: chrome/browser/resources/file_manager/js/butter_bar.js
diff --git a/chrome/browser/resources/file_manager/js/butter_bar.js b/chrome/browser/resources/file_manager/js/butter_bar.js
index 98ff707af448862d0d4254dfb460ad0f02a7777f..fda12da16d3727d56340dca9f1752b1baba186e1 100644
--- a/chrome/browser/resources/file_manager/js/butter_bar.js
+++ b/chrome/browser/resources/file_manager/js/butter_bar.js
@@ -12,10 +12,10 @@ var MINIMUM_BUTTER_DISPLAY_TIME_MS = 1300;
/**
* Butter bar is shown on top of the file list and is used to show the copy
* progress and other messages.
- * @constructor
* @param {HTMLElement} dialogDom FileManager top-level div.
* @param {FileCopyManagerWrapper} copyManager The copy manager.
* @param {MetadataCache} metadataCache The metadata cache.
+ * @constructor
*/
function ButterBar(dialogDom, copyManager, metadataCache) {
this.dialogDom_ = dialogDom;
@@ -96,9 +96,9 @@ ButterBar.prototype.show = function(message, opt_options) {
/**
* Show error message in butter bar.
- * @private
* @param {string} message Message.
* @param {object} opt_options Same as in show().
+ * @private
*/
ButterBar.prototype.showError_ = function(message, opt_options) {
this.show(message, opt_options);
@@ -107,9 +107,9 @@ ButterBar.prototype.showError_ = function(message, opt_options) {
/**
* Set message and/or progress.
- * @private
* @param {string} message Message.
* @param {object} opt_options Same as in show().
+ * @private
*/
ButterBar.prototype.update_ = function(message, opt_options) {
if (!opt_options)
@@ -204,8 +204,8 @@ ButterBar.prototype.clearHideTimeout_ = function() {
};
/**
- * @private
* @return {string?} The type of operation.
+ * @private
*/
ButterBar.prototype.transferType_ = function() {
var progress = this.progress_;
@@ -251,8 +251,8 @@ ButterBar.prototype.showProgress_ = function() {
/**
* 'copy-progress' event handler. Show progress or an appropriate message.
- * @private
* @param {cr.Event} event A 'copy-progress' event from FileCopyManager.
+ * @private
*/
ButterBar.prototype.onCopyProgress_ = function(event) {
// Delete operation has higher priority.
@@ -353,8 +353,8 @@ ButterBar.prototype.forceDeleteAndHide = function() {
/**
* 'delete' event handler. Shows information about deleting files.
- * @private
* @param {cr.Event} event A 'delete' event from FileCopyManager.
+ * @private
*/
ButterBar.prototype.onDelete_ = function(event) {
if (event.id != this.deleteTaskId_) return;

Powered by Google App Engine
This is Rietveld 408576698