1 <link rel=
"import" href=
"chrome://resources/html/action_link.html">
2 <link rel=
"import" href=
"chrome://resources/html/cr.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">
5 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-button/paper-button.html">
6 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-material/paper-material.html">
7 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-progress/paper-progress.html">
8 <link rel=
"import" href=
"chrome://downloads/action_service.html">
9 <link rel=
"import" href=
"chrome://downloads/constants.html">
10 <link rel=
"import" href=
"chrome://downloads/throttled_icon_loader.html">
12 <dom-module id=
"downloads-item">
14 <div id=
"date-container">
15 <template is=
"dom-if" if=
"[[!hideDate]]">
16 <div>[[computeDate_(data_.since_string, data_.date_string)]]
</div>
20 <paper-material id=
"content" on-dragstart=
"onDragStart_">
21 <div id=
"file-icon-wrapper" class=
"icon-wrapper">
22 <img class=
"icon" id=
"file-icon" alt=
"" hidden=
"[[isDangerous_]]">
23 <div class=
"icon" id=
"warning" hidden=
"[[!isDangerous_]]"></div>
27 <div id=
"title-area"><!-- Can't have any line breaks.
28 --><a is=
"action-link" id=
"file-link"
29 on-click=
"onFileLinkClick_"></a><!-- Before #name.
30 --><span id=
"name">[[data_.file_name]]
</span>
31 <span id=
"tag"></span>
34 <a id=
"url" target=
"_blank" href=
"[[data_.url]]">[[data_.url]]
</a>
36 <div id=
"description"></div>
38 <paper-progress id=
"progress"></paper-progress>
40 <div id=
"safe" class=
"controls" hidden$=
"[[isDangerous_]]">
41 <paper-button id=
"show" on-click=
"onShowClick_"
42 i18n-content=
"controlShowInFolder" lowercase noink
></paper-button>
43 <paper-button id=
"retry" on-click=
"onRetryClick_"
44 i18n-content=
"controlRetry"></paper-button>
45 <paper-button id=
"pause" on-click=
"onPauseClick_"
46 i18n-content=
"controlPause"></paper-button>
47 <paper-button id=
"resume" on-click=
"onResumeClick_"
48 i18n-content=
"controlResume"></paper-button>
49 <paper-button id=
"cancel" on-click=
"onCancelClick_"
50 i18n-content=
"controlCancel"></paper-button>
51 <span id=
"controlled-by"
52 i18n-values=
".innerHTML:controlByExtension"></span>
55 <div id=
"dangerous" class=
"controls" hidden$=
"[[!isDangerous_]]">
56 <!-- Dangerous file types (e.g. .exe, .jar). -->
57 <paper-button id=
"discard" i18n-content=
"dangerDiscard"
58 on-click=
"onDiscardDangerous_" class=
"discard"
59 hidden$=
"[[isMalware_]]"></paper-button>
60 <paper-button id=
"save" i18n-content=
"dangerSave"
61 on-click=
"onSaveDangerous_" class=
"keep"
62 hidden$=
"[[isMalware_]]"></paper-button>
64 <!-- Things that safe browsing has determined to be dangerous. -->
65 <paper-button id=
"danger-remove" i18n-content=
"controlRemoveFromList"
66 on-click=
"onDiscardDangerous_" class=
"discard"
67 hidden$=
"[[!isMalware_]]"></paper-button>
68 <paper-button id=
"restore" i18n-content=
"dangerRestore"
69 on-click=
"onSaveDangerous_" class=
"keep"
70 hidden$=
"[[!isMalware_]]"></paper-button>
74 <div id=
"remove-wrapper" class=
"icon-wrapper">
75 <paper-icon-button id=
"remove" icon=
"clear"
76 on-click=
"onRemoveClick_"></paper-icon-button>
79 <div id=
"incognito" hidden$=
"[[!data_.otr]]"></div>
82 <div id=
"end-cap"></div>
85 <link rel=
"import" type=
"css" href=
"chrome://resources/css/action_link.css">
86 <link rel=
"import" type=
"css" href=
"chrome://downloads/shared_style.css">
87 <link rel=
"import" type=
"css" href=
"chrome://downloads/item.css">
88 <script src=
"chrome://downloads/item.js"></script>