Chromium Code Reviews| 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-button/paper-butt on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 6 <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-material/paper-ma terial.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr ogress.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr ogress.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 <template is="dom-if" if="[[!hideDate]]"> | 15 <template is="dom-if" if="[[!hideDate]]"> |
| 16 <div>[[computeDate_(data_.since_string, data_.date_string)]]</div> | 16 <div>[[computeDate_(data_.since_string, data_.date_string)]]</div> |
| 17 </template> | 17 </template> |
| 18 </div> | 18 </div> |
| 19 | 19 |
| 20 <paper-material id="content" on-dragstart="onDragStart_"> | 20 <paper-material id="content" on-dragstart="onDragStart_" |
| 21 elevation$="[[computeElevation_(isActive_)]]"> | |
| 21 <div id="file-icon-wrapper" class="icon-wrapper"> | 22 <div id="file-icon-wrapper" class="icon-wrapper"> |
| 22 <img class="icon" id="file-icon" alt="" hidden="[[isDangerous_]]"> | 23 <img class="icon" id="file-icon" alt="" hidden$="[[isDangerous_]]"> |
| 23 <div class="icon" id="warning" hidden="[[!isDangerous_]]"></div> | 24 <div class="icon" id="warning" hidden$="[[!isDangerous_]]"></div> |
| 24 </div> | 25 </div> |
| 25 | 26 |
| 26 <div id="details"> | 27 <div id="details"> |
| 27 <div id="title-area"><!-- Can't have any line breaks. | 28 <div id="title-area"><!-- |
| 28 --><a is="action-link" id="file-link" | 29 Can't have any line breaks. |
|
tommycli
2015/09/09 20:49:16
These line breaks are okay right?
It's <span><!--
Dan Beam
2015/09/09 21:00:15
yes, <!-- \n --> is OK
tommycli
2015/09/09 21:03:03
I mean, you don't need that comment to span the wh
Dan Beam
2015/09/09 21:04:10
no, <div id="title-area"><!--
doesn't matter what
tommycli
2015/09/09 21:10:44
Ah, I think we're mis-communicating.
I mean: why
Dan Beam
2015/09/09 21:33:03
https://code.google.com/p/chromium/codesearch#chro
| |
| 29 on-click="onFileLinkClick_"></a><!-- Before #name. | 30 --><a is="action-link" id="file-link" href$="[[data_.url]]" |
| 30 --><span id="name">[[data_.file_name]]</span> | 31 on-click="onFileLinkClick_" |
| 32 hidden$="[[!completelyOnDisk_]]">[[data_.file_name]]</a><!-- | |
| 33 Before #name. | |
| 34 --><span id="name" | |
| 35 hidden$="[[completelyOnDisk_]]">[[data_.file_name]]</span> | |
| 31 <span id="tag"></span> | 36 <span id="tag"></span> |
| 32 </div> | 37 </div> |
| 33 | 38 |
| 34 <a id="url" target="_blank" href="[[data_.url]]">[[data_.url]]</a> | 39 <a id="url" target="_blank" href$="[[data_.url]]">[[data_.url]]</a> |
| 35 | 40 |
| 36 <div id="description"></div> | 41 <div id="description"></div> |
| 37 | 42 |
| 38 <template is="dom-if" if="[[showProgress_]]"> | 43 <template is="dom-if" if="[[showProgress_]]"> |
| 39 <paper-progress id="progress" | 44 <paper-progress id="progress" |
| 40 indeterminate$="[[isIndeterminate_(data_.percent)]]" | 45 indeterminate$="[[isIndeterminate_(data_.percent)]]" |
| 41 value$="[[data_.percent]]"></paper-progress> | 46 value$="[[data_.percent]]"></paper-progress> |
| 42 </template> | 47 </template> |
| 43 | 48 |
| 44 <div id="safe" class="controls" hidden$="[[isDangerous_]]"> | 49 <div id="safe" class="controls" hidden$="[[isDangerous_]]"> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 </paper-material> | 100 </paper-material> |
| 96 | 101 |
| 97 <div id="end-cap"></div> | 102 <div id="end-cap"></div> |
| 98 | 103 |
| 99 </template> | 104 </template> |
| 100 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | 105 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> |
| 101 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> | 106 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> |
| 102 <link rel="import" type="css" href="chrome://downloads/item.css"> | 107 <link rel="import" type="css" href="chrome://downloads/item.css"> |
| 103 <script src="chrome://downloads/item.js"></script> | 108 <script src="chrome://downloads/item.js"></script> |
| 104 </dom-module> | 109 </dom-module> |
| OLD | NEW |