OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Event of the ProgressCenter class. | 8 * Event of the ProgressCenter class. |
9 * @enum {string} | 9 * @enum {string} |
10 * @const | 10 * @const |
(...skipping 29 matching lines...) Expand all Loading... |
40 */ | 40 */ |
41 var ProgressItemType = Object.freeze({ | 41 var ProgressItemType = Object.freeze({ |
42 // The item is file copy operation. | 42 // The item is file copy operation. |
43 COPY: 'copy', | 43 COPY: 'copy', |
44 // The item is file move operation. | 44 // The item is file move operation. |
45 MOVE: 'move', | 45 MOVE: 'move', |
46 // The item is file delete opeartion. | 46 // The item is file delete opeartion. |
47 DELETE: 'delete', | 47 DELETE: 'delete', |
48 // The item is file zip operation. | 48 // The item is file zip operation. |
49 ZIP: 'zip', | 49 ZIP: 'zip', |
| 50 // The item is drive sync operaiton. |
| 51 SYNC: 'sync', |
50 // The item is general file transfer operation. | 52 // The item is general file transfer operation. |
51 // This is used for the mixed operation of summarized item. | 53 // This is used for the mixed operation of summarized item. |
52 TRANSFER: 'transfer' | 54 TRANSFER: 'transfer' |
53 }); | 55 }); |
54 | 56 |
55 /** | 57 /** |
56 * Item of the progress center. | 58 * Item of the progress center. |
57 * @constructor | 59 * @constructor |
58 */ | 60 */ |
59 var ProgressCenterItem = function() { | 61 var ProgressCenterItem = function() { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 newItem.state = this.state; | 175 newItem.state = this.state; |
174 newItem.message = this.message; | 176 newItem.message = this.message; |
175 newItem.progressMax = this.progressMax; | 177 newItem.progressMax = this.progressMax; |
176 newItem.progressValue = this.progressValue; | 178 newItem.progressValue = this.progressValue; |
177 newItem.type = this.type; | 179 newItem.type = this.type; |
178 newItem.single = this.single; | 180 newItem.single = this.single; |
179 newItem.quiet = this.quiet; | 181 newItem.quiet = this.quiet; |
180 newItem.cancelCallback = this.cancelCallback; | 182 newItem.cancelCallback = this.cancelCallback; |
181 return newItem; | 183 return newItem; |
182 }; | 184 }; |
OLD | NEW |