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-material/paper-material.html">
6 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-progress/paper-progress.html">
7 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/cr_button/cr_button.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 <div id=
"since"></div>
19 <div id=
"content-wrapper">
20 <paper-material id=
"content" on-dragstart=
"onDragStart_">
21 <div 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" column-type=
"name"
29 on-click=
"onFileLinkClick_"></a><!-- Before #name.
30 --><span id=
"name"></span>
31 <span id=
"tag"></span>
34 <a id=
"url" target=
"_blank" column-type=
"url"></a>
36 <div id=
"description"></div>
38 <paper-progress id=
"progress"></paper-progress>
40 <div id=
"safe" class=
"controls" hidden$=
"[[isDangerous_]]">
41 <cr-button id=
"show" column-type=
"show" on-click=
"onShowClick_"
42 i18n-content=
"controlShowInFolder"></cr-button>
43 <cr-button id=
"retry" column-type=
"retry" on-click=
"onRetryClick_"
44 i18n-content=
"controlRetry"></cr-button>
45 <cr-button id=
"pause" column-type=
"pause" on-click=
"onPauseClick_"
46 i18n-content=
"controlPause"></cr-button>
47 <cr-button id=
"resume" column-type=
"resume"
48 on-click=
"onResumeClick_"
49 i18n-content=
"controlResume"></cr-button>
50 <cr-button id=
"cancel" column-type=
"cancel"
51 on-click=
"onCancelClick_"
52 i18n-content=
"controlCancel"></cr-button>
53 <span id=
"controlled-by"
54 i18n-values=
".innerHTML:controlByExtension"></span>
57 <div id=
"dangerous" class=
"controls" hidden$=
"[[!isDangerous_]]">
58 <!-- Dangerous file types (e.g. .exe, .jar). -->
59 <cr-button column-type=
"save" i18n-content=
"dangerSave"
60 on-click=
"onSaveDangerous_"
61 hidden$=
"[[isMalware_]]"></cr-button>
62 <cr-button column-type=
"discard" i18n-content=
"dangerDiscard"
63 on-click=
"onDiscardDangerous_"
64 hidden$=
"[[isMalware_]]"></cr-button>
66 <!-- Things that safe browsing has determined to be dangerous. -->
67 <cr-button column-type=
"save" i18n-content=
"dangerRestore"
68 on-click=
"onSaveDangerous_"
69 hidden$=
"[[!isMalware_]]"></cr-button>
70 <cr-button column-type=
"discard"
71 i18n-content=
"controlRemoveFromList"
72 on-click=
"onDiscardDangerous_"
73 hidden$=
"[[!isMalware_]]"></cr-button>
77 <div id=
"incognito" class=
"icon-wrapper"
78 hidden$=
"[[!isIncognito_]]"></div>
80 <div id=
"remove-wrapper" class=
"icon-wrapper">
81 <paper-icon-button id=
"remove" column-type=
"remove" icon=
"clear"
82 on-click=
"onRemoveClick_"></paper-icon-button>
87 <div id=
"end-cap"></div>
90 <link rel=
"import" type=
"css" href=
"chrome://resources/css/action_link.css">
91 <link rel=
"import" type=
"css" href=
"chrome://downloads/shared_style.css">
92 <link rel=
"import" type=
"css" href=
"chrome://downloads/item.css">
93 <script src=
"chrome://downloads/item.js"></script>