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

Side by Side Diff: chrome/browser/resources/file_manager/js/photo/importing_dialog.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 /** 6 /**
7 * ImportingDialog manages the import process (which is really a copying). 7 * ImportingDialog manages the import process (which is really a copying).
8 * @constructor
9 * @param {HTMLElement} parentNode Node to be parent for this dialog. 8 * @param {HTMLElement} parentNode Node to be parent for this dialog.
10 * @param {FileCopyManager} copyManager Copy manager isntance. 9 * @param {FileCopyManager} copyManager Copy manager isntance.
11 * @param {MetadataCache} metadataCache Metadata cache. 10 * @param {MetadataCache} metadataCache Metadata cache.
11 * @constructor
12 */ 12 */
13 function ImportingDialog(parentNode, copyManager, metadataCache) { 13 function ImportingDialog(parentNode, copyManager, metadataCache) {
14 cr.ui.dialogs.BaseDialog.call(this, parentNode); 14 cr.ui.dialogs.BaseDialog.call(this, parentNode);
15 this.copyManager_ = copyManager; 15 this.copyManager_ = copyManager;
16 this.metadataCache_ = metadataCache; 16 this.metadataCache_ = metadataCache;
17 this.onCopyProgressBound_ = this.onCopyProgress_.bind(this); 17 this.onCopyProgressBound_ = this.onCopyProgress_.bind(this);
18 } 18 }
19 19
20 ImportingDialog.prototype = { 20 ImportingDialog.prototype = {
21 __proto__: cr.ui.dialogs.BaseDialog.prototype 21 __proto__: cr.ui.dialogs.BaseDialog.prototype
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 loadTimeData.getString('PHOTO_IMPORT_IMPORTING_ERROR'); 172 loadTimeData.getString('PHOTO_IMPORT_IMPORTING_ERROR');
173 this.imageBox_.setAttribute('state', 'error'); 173 this.imageBox_.setAttribute('state', 'error');
174 this.frame_.removeChild(this.cancelButton_); 174 this.frame_.removeChild(this.cancelButton_);
175 this.frame_.appendChild(this.okButton_); 175 this.frame_.appendChild(this.okButton_);
176 break; 176 break;
177 177
178 default: 178 default:
179 console.error('Unknown "copy-progress" event reason: ' + event.reason); 179 console.error('Unknown "copy-progress" event reason: ' + event.reason);
180 } 180 }
181 }; 181 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698