| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html i18n-values="dir:textdirection;"> | 2 <html i18n-values="dir:textdirection;"> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title i18n-content="title"></title> | 5 <title i18n-content="title"></title> |
| 6 <link rel="icon" href="../../app/theme/downloads_favicon.png"> | 6 <link rel="icon" href="../../app/theme/downloads_favicon.png"> |
| 7 <style> | 7 <style> |
| 8 body { | 8 body { |
| 9 background-color: white; | 9 background-color: white; |
| 10 color: black; | 10 color: black; |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 } | 456 } |
| 457 | 457 |
| 458 /** | 458 /** |
| 459 * The states a download can be in. These correspond to states defined in | 459 * The states a download can be in. These correspond to states defined in |
| 460 * DownloadsDOMHandler::CreateDownloadItemValue | 460 * DownloadsDOMHandler::CreateDownloadItemValue |
| 461 */ | 461 */ |
| 462 Download.States = { | 462 Download.States = { |
| 463 IN_PROGRESS : "IN_PROGRESS", | 463 IN_PROGRESS : "IN_PROGRESS", |
| 464 CANCELLED : "CANCELLED", | 464 CANCELLED : "CANCELLED", |
| 465 COMPLETE : "COMPLETE", | 465 COMPLETE : "COMPLETE", |
| 466 REMOVED : "REMOVED", |
| 466 PAUSED : "PAUSED", | 467 PAUSED : "PAUSED", |
| 467 DANGEROUS : "DANGEROUS", | 468 DANGEROUS : "DANGEROUS", |
| 468 INTERRUPTED : "INTERRUPTED", | 469 INTERRUPTED : "INTERRUPTED", |
| 469 } | 470 } |
| 470 | 471 |
| 471 /** | 472 /** |
| 472 * Explains why a download is in DANGEROUS state. | 473 * Explains why a download is in DANGEROUS state. |
| 473 */ | 474 */ |
| 474 Download.DangerType = { | 475 Download.DangerType = { |
| 475 NOT_DANGEROUS: "NOT_DANGEROUS", | 476 NOT_DANGEROUS: "NOT_DANGEROUS", |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 611 |
| 611 /** | 612 /** |
| 612 * @return {String} User-visible status update text. | 613 * @return {String} User-visible status update text. |
| 613 */ | 614 */ |
| 614 Download.prototype.getStatusText_ = function() { | 615 Download.prototype.getStatusText_ = function() { |
| 615 switch (this.state_) { | 616 switch (this.state_) { |
| 616 case Download.States.IN_PROGRESS: | 617 case Download.States.IN_PROGRESS: |
| 617 return this.progressStatusText_; | 618 return this.progressStatusText_; |
| 618 case Download.States.CANCELLED: | 619 case Download.States.CANCELLED: |
| 619 return localStrings.getString('status_cancelled'); | 620 return localStrings.getString('status_cancelled'); |
| 621 case Download.States.REMOVED: |
| 622 return localStrings.getString('status_removed'); |
| 620 case Download.States.PAUSED: | 623 case Download.States.PAUSED: |
| 621 return localStrings.getString('status_paused'); | 624 return localStrings.getString('status_paused'); |
| 622 case Download.States.DANGEROUS: | 625 case Download.States.DANGEROUS: |
| 623 var desc = this.dangerType_ == Download.DangerType.DANGEROUS_FILE ? | 626 var desc = this.dangerType_ == Download.DangerType.DANGEROUS_FILE ? |
| 624 'danger_file_desc' : 'danger_url_desc'; | 627 'danger_file_desc' : 'danger_url_desc'; |
| 625 return localStrings.getString(desc); | 628 return localStrings.getString(desc); |
| 626 case Download.States.INTERRUPTED: | 629 case Download.States.INTERRUPTED: |
| 627 return localStrings.getString('status_interrupted'); | 630 return localStrings.getString('status_interrupted'); |
| 628 case Download.States.COMPLETE: | 631 case Download.States.COMPLETE: |
| 629 return ''; | 632 return ''; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 <div id="downloads-summary"> | 777 <div id="downloads-summary"> |
| 775 <span id="downloads-summary-text" i18n-content="downloads">Downloads</span> | 778 <span id="downloads-summary-text" i18n-content="downloads">Downloads</span> |
| 776 <a id="clear-all" href="" onclick="clearAll();" i18n-content="clear_all">Cle
ar All</a> | 779 <a id="clear-all" href="" onclick="clearAll();" i18n-content="clear_all">Cle
ar All</a> |
| 777 </div> | 780 </div> |
| 778 <div id="downloads-display"></div> | 781 <div id="downloads-display"></div> |
| 779 </div> | 782 </div> |
| 780 <div class="footer"> | 783 <div class="footer"> |
| 781 </div> | 784 </div> |
| 782 </body> | 785 </body> |
| 783 </html> | 786 </html> |
| OLD | NEW |