Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: chrome/browser/resources/md_downloads/item.html

Issue 1331573003: MD Downloads: compute card elevation via data binding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dom-if3
Patch Set: whoops Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_downloads/item.html
diff --git a/chrome/browser/resources/md_downloads/item.html b/chrome/browser/resources/md_downloads/item.html
index 046f0407d64829470326bbd3979b41ba1c946306..7037569f95ec53df61f626acff99b65bbd44f699 100644
--- a/chrome/browser/resources/md_downloads/item.html
+++ b/chrome/browser/resources/md_downloads/item.html
@@ -17,21 +17,26 @@
</template>
</div>
- <paper-material id="content" on-dragstart="onDragStart_">
+ <paper-material id="content" on-dragstart="onDragStart_"
+ elevation$="[[computeElevation_(isActive_)]]">
<div id="file-icon-wrapper" class="icon-wrapper">
- <img class="icon" id="file-icon" alt="" hidden="[[isDangerous_]]">
- <div class="icon" id="warning" hidden="[[!isDangerous_]]"></div>
+ <img class="icon" id="file-icon" alt="" hidden$="[[isDangerous_]]">
+ <div class="icon" id="warning" hidden$="[[!isDangerous_]]"></div>
</div>
<div id="details">
- <div id="title-area"><!-- Can't have any line breaks.
- --><a is="action-link" id="file-link"
- on-click="onFileLinkClick_"></a><!-- Before #name.
- --><span id="name">[[data_.file_name]]</span>
+ <div id="title-area"><!--
+ 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
+ --><a is="action-link" id="file-link" href$="[[data_.url]]"
+ on-click="onFileLinkClick_"
+ hidden$="[[!completelyOnDisk_]]">[[data_.file_name]]</a><!--
+ Before #name.
+ --><span id="name"
+ hidden$="[[completelyOnDisk_]]">[[data_.file_name]]</span>
<span id="tag"></span>
</div>
- <a id="url" target="_blank" href="[[data_.url]]">[[data_.url]]</a>
+ <a id="url" target="_blank" href$="[[data_.url]]">[[data_.url]]</a>
<div id="description"></div>
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/item.js » ('j') | chrome/browser/resources/md_downloads/item.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698