| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/action_link.html"> | 1 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 2 <link rel="import" href="chrome://resources/html/cr.html"> | 2 <link rel="import" href="chrome://resources/html/cr.html"> |
| 3 <link rel="import" href="chrome://resources/html/load_time_data.html"> | 3 <link rel="import" href="chrome://resources/html/load_time_data.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-ma
terial.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-ma
terial.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> |
| 7 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button
.html"> | 7 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button
.html"> |
| 8 <link rel="import" href="chrome://downloads/action_service.html"> | 8 <link rel="import" href="chrome://downloads/action_service.html"> |
| 9 <link rel="import" href="chrome://downloads/constants.html"> | 9 <link rel="import" href="chrome://downloads/constants.html"> |
| 10 <link rel="import" href="chrome://downloads/throttled_icon_loader.html"> | 10 <link rel="import" href="chrome://downloads/throttled_icon_loader.html"> |
| 11 | 11 |
| 12 <dom-module id="downloads-item"> | 12 <dom-module id="downloads-item"> |
| 13 <template> | 13 <template> |
| 14 <div id="date-container"> | 14 <div id="date-container"> |
| 15 <div id="since"></div> | 15 <div id="since"></div> |
| 16 <div id="date"></div> | 16 <div id="date"></div> |
| 17 </div> | 17 </div> |
| 18 | 18 |
| 19 <paper-material id="content" on-dragstart="onDragStart_"> | 19 <div id="content-wrapper"> |
| 20 <div class="icon-wrapper"> | 20 <paper-material id="content" on-dragstart="onDragStart_"> |
| 21 <img id="icon" alt=""> | 21 <div class="icon-wrapper"> |
| 22 </div> | 22 <img id="icon" alt=""> |
| 23 | |
| 24 <div id="details"> | |
| 25 <div id="title-area"><!-- Can't have any line breaks. | |
| 26 --><a is="action-link" id="file-link" column-type="name" | |
| 27 on-click="onFileLinkClick_"></a><!-- Before #name. | |
| 28 --><span id="name"></span> | |
| 29 <span id="tag"></span> | |
| 30 </div> | 23 </div> |
| 31 | 24 |
| 32 <a id="url" target="_blank" column-type="url"></a> | 25 <div id="details"> |
| 26 <div id="title-area"><!-- Can't have any line breaks. |
| 27 --><a is="action-link" id="file-link" column-type="name" |
| 28 on-click="onFileLinkClick_"></a><!-- Before #name. |
| 29 --><span id="name"></span> |
| 30 <span id="tag"></span> |
| 31 </div> |
| 33 | 32 |
| 34 <div id="description"></div> | 33 <a id="url" target="_blank" column-type="url"></a> |
| 35 | 34 |
| 36 <paper-progress id="progress"></paper-progress> | 35 <div id="description"></div> |
| 37 | 36 |
| 38 <div id="safe" class="controls" hidden$="[[isDangerous_]]"> | 37 <paper-progress id="progress"></paper-progress> |
| 39 <cr-button id="show" column-type="show" on-click="onShowClick_" | 38 |
| 40 i18n-content="controlShowInFolder"></cr-button> | 39 <div id="safe" class="controls" hidden$="[[isDangerous_]]"> |
| 41 <cr-button id="retry" column-type="retry" on-click="onRetryClick_" | 40 <cr-button id="show" column-type="show" on-click="onShowClick_" |
| 42 i18n-content="controlRetry"></cr-button> | 41 i18n-content="controlShowInFolder"></cr-button> |
| 43 <cr-button id="pause" column-type="pause" on-click="onPauseClick_" | 42 <cr-button id="retry" column-type="retry" on-click="onRetryClick_" |
| 44 i18n-content="controlPause"></cr-button> | 43 i18n-content="controlRetry"></cr-button> |
| 45 <cr-button id="resume" column-type="resume" on-click="onResumeClick_" | 44 <cr-button id="pause" column-type="pause" on-click="onPauseClick_" |
| 46 i18n-content="controlResume"></cr-button> | 45 i18n-content="controlPause"></cr-button> |
| 47 <cr-button id="cancel" column-type="cancel" on-click="onCancelClick_" | 46 <cr-button id="resume" column-type="resume" |
| 48 i18n-content="controlCancel"></cr-button> | 47 on-click="onResumeClick_" |
| 49 <span id="controlled-by" | 48 i18n-content="controlResume"></cr-button> |
| 50 i18n-values=".innerHTML:controlByExtension"></span> | 49 <cr-button id="cancel" column-type="cancel" |
| 50 on-click="onCancelClick_" |
| 51 i18n-content="controlCancel"></cr-button> |
| 52 <span id="controlled-by" |
| 53 i18n-values=".innerHTML:controlByExtension"></span> |
| 54 </div> |
| 55 |
| 56 <div id="dangerous" class="controls" hidden$="[[!isDangerous_]]"> |
| 57 <cr-button column-type="save" i18n-content="dangerRestore" |
| 58 on-click="onRestoreOrSaveClick_" |
| 59 hidden$="[[!isMalware_]]"></cr-button> |
| 60 <cr-button column-type="save" i18n-content="dangerSave" |
| 61 on-click="onRestoreOrSaveClick_" |
| 62 hidden$="[[isMalware_]]"></cr-button> |
| 63 </div> |
| 51 </div> | 64 </div> |
| 52 | 65 |
| 53 <div id="dangerous" class="controls" hidden$="[[!isDangerous_]]"> | 66 <div id="remove-wrapper" class="icon-wrapper"> |
| 54 <cr-button column-type="save" i18n-content="dangerRestore" | 67 <paper-icon-button id="remove" column-type="remove" icon="clear" |
| 55 on-click="onRestoreOrSaveClick_" | 68 on-click="onRemoveClick_"></paper-icon-button> |
| 56 hidden$="[[!isMalware_]]"></cr-button> | |
| 57 <cr-button column-type="save" i18n-content="dangerSave" | |
| 58 on-click="onRestoreOrSaveClick_" | |
| 59 hidden$="[[isMalware_]]"></cr-button> | |
| 60 </div> | 69 </div> |
| 61 </div> | 70 </paper-material> |
| 62 | 71 </div> |
| 63 <div id="remove-wrapper" class="icon-wrapper"> | |
| 64 <paper-icon-button id="remove" column-type="remove" icon="clear" | |
| 65 on-click="onRemoveClick_"></paper-icon-button> | |
| 66 </div> | |
| 67 </paper-material> | |
| 68 | 72 |
| 69 <div id="end-cap"></div> | 73 <div id="end-cap"></div> |
| 70 | 74 |
| 71 </template> | 75 </template> |
| 72 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | 76 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> |
| 73 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> | 77 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> |
| 74 <link rel="import" type="css" href="chrome://downloads/item.css"> | 78 <link rel="import" type="css" href="chrome://downloads/item.css"> |
| 75 <script src="chrome://downloads/item.js"></script> | 79 <script src="chrome://downloads/item.js"></script> |
| 76 </dom-module> | 80 </dom-module> |
| OLD | NEW |