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 <template is=
"dom-if" if=
"[[showProgress_]]">
39 <paper-progress id=
"progress"
40 indeterminate$=
"[[isIndeterminate_(data_.percent)]]"
41 value$=
"[[data_.percent]]"></paper-progress>
44 <div id=
"safe" class=
"controls" hidden$=
"[[isDangerous_]]">
45 <template is=
"dom-if" if=
"[[completelyOnDisk_]]">
46 <paper-button id=
"show" on-click=
"onShowClick_"
47 lowercase noink
>[[i18n_.show]]
</paper-button>
49 <template is=
"dom-if" if=
"[[data_.retry]]">
50 <paper-button id=
"retry"
51 on-click=
"onRetryClick_">[[i18n_.retry]]
</paper-button>
53 <template is=
"dom-if" if=
"[[isInProgress_]]">
54 <paper-button id=
"pause"
55 on-click=
"onPauseClick_">[[i18n_.pause]]
</paper-button>
57 <template is=
"dom-if" if=
"[[data_.resume]]">
58 <paper-button id=
"resume"
59 on-click=
"onResumeClick_">[[i18n_.resume]]
</paper-button>
61 <template is=
"dom-if" if=
"[[showCancel_]]">
62 <paper-button id=
"cancel"
63 on-click=
"onCancelClick_">[[i18n_.cancel]]
</paper-button>
65 <span id=
"controlled-by"
66 i18n-values=
".innerHTML:controlByExtension"></span>
69 <div id=
"dangerous" class=
"controls" hidden$=
"[[!isDangerous_]]">
70 <!-- Dangerous file types (e.g. .exe, .jar). -->
71 <template is=
"dom-if" if=
"[[!isMalware_]]">
72 <paper-button id=
"discard" on-click=
"onDiscardDangerous_"
73 class=
"discard">[[i18n_.discard]]
</paper-button>
74 <paper-button id=
"save" on-click=
"onSaveDangerous_"
75 class=
"keep">[[i18n_.save]]
</paper-button>
78 <!-- Things that safe browsing has determined to be dangerous. -->
79 <template is=
"dom-if" if=
"[[isMalware_]]">
80 <paper-button id=
"danger-remove" on-click=
"onDiscardDangerous_"
81 class=
"discard">[[i18n_.remove]]
</paper-button>
82 <paper-button id=
"restore" on-click=
"onSaveDangerous_"
83 class=
"keep">[[i18n_.restore]
</paper-button>
88 <div id=
"remove-wrapper" class=
"icon-wrapper">
89 <paper-icon-button id=
"remove" icon=
"clear"
90 on-click=
"onRemoveClick_"></paper-icon-button>
93 <div id=
"incognito" hidden$=
"[[!data_.otr]]"></div>
96 <div id=
"end-cap"></div>
99 <link rel=
"import" type=
"css" href=
"chrome://resources/css/action_link.css">
100 <link rel=
"import" type=
"css" href=
"chrome://downloads/shared_style.css">
101 <link rel=
"import" type=
"css" href=
"chrome://downloads/item.css">
102 <script src=
"chrome://downloads/item.js"></script>