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

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

Issue 1375333004: MD Downloads: use <iron-list> to render download items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iron-list2
Patch Set: merge Created 5 years, 2 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
« no previous file with comments | « chrome/browser/resources/md_downloads/item.js ('k') | chrome/browser/resources/md_downloads/manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/manager.html
diff --git a/chrome/browser/resources/md_downloads/manager.html b/chrome/browser/resources/md_downloads/manager.html
index 46fb6ebc793951056dc02b85d11485d1de5464da..628f0eaf65c47348cc692932d5ea2357939dd8e8 100644
--- a/chrome/browser/resources/md_downloads/manager.html
+++ b/chrome/browser/resources/md_downloads/manager.html
@@ -5,6 +5,7 @@
<link rel="import" href="chrome://resources/html/cr/ui/focus_grid.html">
<link rel="import" href="chrome://resources/html/util.html">
<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-header-panel/paper-header-panel.html">
<link rel="import" href="chrome://downloads/action_service.html">
<link rel="import" href="chrome://downloads/constants.html">
@@ -16,8 +17,14 @@
<template>
<paper-header-panel id="panel" class="loading">
<downloads-toolbar class="paper-header" id="toolbar"></downloads-toolbar>
- <div id="downloads-list" hidden$="[[!hasDownloads_]]"></div>
- <div id="no-downloads" hidden$="[[hasDownloads_]]">
+ <iron-list id="downloads-list" items="{{items_}}"
+ hidden="[[!hasDownloads_]]">
+ <template>
+ <downloads-item data="[[item]]" hide-date="[[item.hideDate]]">
+ </downloads-item>
+ </template>
+ </iron-list>
+ <div id="no-downloads" hidden="[[hasDownloads_]]">
<div>
<div class="illustration"></div>
<span><!-- Text populated in Manager#updateAll_(). --></span>
« no previous file with comments | « chrome/browser/resources/md_downloads/item.js ('k') | chrome/browser/resources/md_downloads/manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698