| 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/iron-icon/iron-icon.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-behaviors/paper-i
nky-focus-behavior.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> |
| 9 <link rel="import" href="chrome://downloads/action_service.html"> | 10 <link rel="import" href="chrome://downloads/action_service.html"> |
| 10 <link rel="import" href="chrome://downloads/constants.html"> | 11 <link rel="import" href="chrome://downloads/constants.html"> |
| 11 | 12 |
| 13 <dom-module id="inky-text-button"> |
| 14 <template><content></content></template> |
| 15 <style> |
| 16 :host { |
| 17 -webkit-user-select: none; |
| 18 cursor: pointer; |
| 19 display: inline-block; |
| 20 outline: none; |
| 21 position: relative; |
| 22 text-align: center; |
| 23 } |
| 24 </style> |
| 25 </dom-module> |
| 26 |
| 12 <dom-module id="downloads-item"> | 27 <dom-module id="downloads-item"> |
| 13 <template> | 28 <template> |
| 14 <template is="dom-if" if="[[!hideDate]]"> | 29 <template is="dom-if" if="[[!hideDate]]"> |
| 15 <h3 id="date">[[computeDate_(hideDate, data.since_string, data.date_string
)]]</h3> | 30 <h3 id="date">[[computeDate_(hideDate, data.since_string, data.date_string
)]]</h3> |
| 16 </template> | 31 </template> |
| 17 | 32 |
| 18 <div id="content" on-dragstart="onDragStart_" | 33 <div id="content" on-dragstart="onDragStart_" |
| 19 class$="[[computeClass_(isActive_, isDangerous_, showProgress_)]]"> | 34 class$="[[computeClass_(isActive_, isDangerous_, showProgress_)]]"> |
| 20 <div id="file-icon-wrapper" class="icon-wrapper"> | 35 <div id="file-icon-wrapper" class="icon-wrapper"> |
| 21 <img class="icon" id="file-icon" alt="" hidden="[[isDangerous_]]"> | 36 <img class="icon" id="file-icon" alt="" hidden="[[isDangerous_]]"> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 <paper-button id="danger-remove" on-tap="onDiscardDangerousTap_" | 98 <paper-button id="danger-remove" on-tap="onDiscardDangerousTap_" |
| 84 class="discard">[[i18n_.remove]]</paper-button> | 99 class="discard">[[i18n_.remove]]</paper-button> |
| 85 <paper-button id="restore" on-tap="onSaveDangerousTap_" | 100 <paper-button id="restore" on-tap="onSaveDangerousTap_" |
| 86 class="keep">[[i18n_.restore]</paper-button> | 101 class="keep">[[i18n_.restore]</paper-button> |
| 87 </template> | 102 </template> |
| 88 </div> | 103 </div> |
| 89 </template> | 104 </template> |
| 90 </div> | 105 </div> |
| 91 | 106 |
| 92 <div id="remove-wrapper" class="icon-wrapper"> | 107 <div id="remove-wrapper" class="icon-wrapper"> |
| 93 <paper-icon-button id="remove" icon="clear" | 108 <inky-text-button id="remove" i18n-values="title:controlRemoveFromList" |
| 94 i18n-values="title:controlRemoveFromList" | |
| 95 style$="[[computeRemoveStyle_(isDangerous_, showCancel_)]]" | 109 style$="[[computeRemoveStyle_(isDangerous_, showCancel_)]]" |
| 96 on-tap="onRemoveTap_"></paper-icon-button> | 110 on-tap="onRemoveTap_">✕</inky-text-button> |
| 97 </div> | 111 </div> |
| 98 | 112 |
| 99 <div id="incognito" i18n-values="title:inIncognito" | 113 <div id="incognito" i18n-values="title:inIncognito" |
| 100 hidden="[[!data.otr]]"></div> | 114 hidden="[[!data.otr]]"></div> |
| 101 </div> | 115 </div> |
| 102 | 116 |
| 103 </template> | 117 </template> |
| 104 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | 118 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> |
| 105 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> | 119 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> |
| 106 <link rel="import" type="css" href="chrome://downloads/item.css"> | 120 <link rel="import" type="css" href="chrome://downloads/item.css"> |
| 107 <script src="chrome://downloads/item.js"></script> | 121 <script src="chrome://downloads/item.js"></script> |
| 108 </dom-module> | 122 </dom-module> |
| OLD | NEW |