Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / resources / md_downloads / item.html
blob6588516b6513aaaabf9693ae686c33ef3d599837
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">
13 <template>
14 <div id="date-container">
15 <div id="since"></div>
16 <div id="date"></div>
17 </div>
19 <paper-material id="content" on-dragstart="onDragStart_">
20 <div id="file-icon-wrapper" class="icon-wrapper">
21 <img class="icon" id="file-icon" alt="" hidden="[[isDangerous_]]">
22 <div class="icon" id="warning" hidden="[[!isDangerous_]]"></div>
23 </div>
25 <div id="details">
26 <div id="title-area"><!-- Can't have any line breaks.
27 --><a is="action-link" id="file-link" focus-type="name"
28 on-click="onFileLinkClick_"></a><!-- Before #name.
29 --><span id="name"></span>
30 <span id="tag"></span>
31 </div>
33 <a id="url" target="_blank" focus-type="url"></a>
35 <div id="description"></div>
37 <paper-progress id="progress"></paper-progress>
39 <div id="safe" class="controls" hidden$="[[isDangerous_]]">
40 <cr-button id="show" focus-type="show"
41 on-click="onShowClick_" i18n-content="controlShowInFolder"
42 lowercase></cr-button>
43 <cr-button id="retry" focus-type="retry" on-click="onRetryClick_"
44 i18n-content="controlRetry"></cr-button>
45 <cr-button id="pause" focus-type="pause" on-click="onPauseClick_"
46 i18n-content="controlPause"></cr-button>
47 <cr-button id="resume" focus-type="resume"
48 on-click="onResumeClick_"
49 i18n-content="controlResume"></cr-button>
50 <cr-button id="cancel" focus-type="cancel"
51 on-click="onCancelClick_"
52 i18n-content="controlCancel"></cr-button>
53 <span id="controlled-by"
54 i18n-values=".innerHTML:controlByExtension"></span>
55 </div>
57 <div id="dangerous" class="controls" hidden$="[[!isDangerous_]]">
58 <!-- Dangerous file types (e.g. .exe, .jar). -->
59 <cr-button focus-type="discard" i18n-content="dangerDiscard"
60 on-click="onDiscardDangerous_" class="discard"
61 hidden$="[[isMalware_]]"></cr-button>
62 <cr-button focus-type="save" i18n-content="dangerSave"
63 on-click="onSaveDangerous_" class="keep"
64 hidden$="[[isMalware_]]"></cr-button>
66 <!-- Things that safe browsing has determined to be dangerous. -->
67 <cr-button focus-type="discard"
68 i18n-content="controlRemoveFromList"
69 on-click="onDiscardDangerous_" class="discard"
70 hidden$="[[!isMalware_]]"></cr-button>
71 <cr-button focus-type="save" i18n-content="dangerRestore"
72 on-click="onSaveDangerous_" class="keep"
73 hidden$="[[!isMalware_]]"></cr-button>
74 </div>
75 </div>
77 <div id="remove-wrapper" class="icon-wrapper">
78 <paper-icon-button id="remove" focus-type="remove" icon="clear"
79 on-click="onRemoveClick_"></paper-icon-button>
80 </div>
82 <div id="incognito" hidden$="[[!isIncognito_]]"></div>
83 </paper-material>
85 <div id="end-cap"></div>
87 </template>
88 <link rel="import" type="css" href="chrome://resources/css/action_link.css">
89 <link rel="import" type="css" href="chrome://downloads/shared_style.css">
90 <link rel="import" type="css" href="chrome://downloads/item.css">
91 <script src="chrome://downloads/item.js"></script>
92 </dom-module>