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

Side by Side Diff: chrome/browser/resources/md_downloads/item.html

Issue 1257413004: Keep hackin' on MD downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-items4
Patch Set: stupid whitespace Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/action_link.html"> 1 <link rel="import" href="chrome://resources/html/action_link.html">
2 <link rel="import" href="chrome://resources/html/cr.html"> 2 <link rel="import" href="chrome://resources/html/cr.html">
3 <link rel="import" href="chrome://resources/html/load_time_data.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"> 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-ma terial.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-ma terial.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr ogress.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr ogress.html">
7 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button .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"> 8 <link rel="import" href="chrome://downloads/action_service.html">
9 <link rel="import" href="chrome://downloads/constants.html"> 9 <link rel="import" href="chrome://downloads/constants.html">
10 <link rel="import" href="chrome://downloads/throttled_icon_loader.html"> 10 <link rel="import" href="chrome://downloads/throttled_icon_loader.html">
11 11
12 <dom-module id="downloads-item"> 12 <dom-module id="downloads-item">
13 <template> 13 <template>
14 <div id="date-container"> 14 <div id="date-container">
15 <div id="since"></div> 15 <div id="since"></div>
16 <div id="date"></div> 16 <div id="date"></div>
17 </div> 17 </div>
18 18
19 <paper-material id="safe" hidden$="[[isDangerous_]]" 19 <paper-material id="content" on-dragstart="onDragStart_">
20 on-dragstart="onDragStart_"> 20 <div class="icon-wrapper">
21 <div id="safe-icon-wrapper"> 21 <img id="icon" alt="">
22 <img id="safe-icon" alt="">
23 </div> 22 </div>
23
24 <div id="details"> 24 <div id="details">
25 <div id="title-area"> 25 <div id="title-area"><!-- Can't have any line breaks.
26 <a is="action-link" id="file-link" column-type="name" 26 --><a is="action-link" id="file-link" column-type="name"
27 on-click="onFileLinkClick_"></a> 27 on-click="onFileLinkClick_"></a><!-- Before #name.
28 <div id="name"></div> 28 --><span id="name"></span>
29 <span id="tag"></span>
29 </div> 30 </div>
30 <a id="src-url" target="_blank" column-type="url"></a> 31
31 <div id="status"></div> 32 <a id="url" target="_blank" column-type="url"></a>
33
34 <div id="description"></div>
35
32 <paper-progress id="progress"></paper-progress> 36 <paper-progress id="progress"></paper-progress>
33 <div id="button-container"> 37
38 <div id="safe" class="controls" hidden$="[[isDangerous_]]">
34 <cr-button id="show" column-type="show" on-click="onShowClick_" 39 <cr-button id="show" column-type="show" on-click="onShowClick_"
35 i18n-content="controlShowInFolder"></cr-button> 40 i18n-content="controlShowInFolder"></cr-button>
36 <cr-button id="retry" column-type="retry" on-click="onRetryClick_" 41 <cr-button id="retry" column-type="retry" on-click="onRetryClick_"
37 i18n-content="controlRetry"></cr-button> 42 i18n-content="controlRetry"></cr-button>
38 <cr-button id="pause" column-type="pause" on-click="onPauseClick_" 43 <cr-button id="pause" column-type="pause" on-click="onPauseClick_"
39 i18n-content="controlPause"></cr-button> 44 i18n-content="controlPause"></cr-button>
40 <cr-button id="resume" column-type="resume" on-click="onResumeClick_" 45 <cr-button id="resume" column-type="resume" on-click="onResumeClick_"
41 i18n-content="controlResume"></cr-button> 46 i18n-content="controlResume"></cr-button>
42 <cr-button id="cancel" column-type="cancel" on-click="onCancelClick_" 47 <cr-button id="cancel" column-type="cancel" on-click="onCancelClick_"
43 i18n-content="controlCancel"></cr-button> 48 i18n-content="controlCancel"></cr-button>
44 <span id="controlled-by" 49 <span id="controlled-by"
45 i18n-values=".innerHTML:controlByExtension"></span> 50 i18n-values=".innerHTML:controlByExtension"></span>
46 </div> 51 </div>
52
53 <div id="dangerous" class="controls" hidden$="[[!isDangerous_]]">
54 <cr-button column-type="save" i18n-content="dangerRestore"
55 on-click="onRestoreOrSaveClick_"
56 hidden$="[[!isMalware_]]"></cr-button>
57 <cr-button column-type="save" i18n-content="dangerSave"
58 on-click="onRestoreOrSaveClick_"
59 hidden$="[[isMalware_]]"></cr-button>
60 </div>
47 </div> 61 </div>
48 <div id="remove-wrapper"> 62
49 <paper-icon-button id="safe-remove" column-type="remove" icon="clear" 63 <div id="remove-wrapper" class="icon-wrapper">
50 on-click="onRemoveClick_" 64 <paper-icon-button id="remove" column-type="remove" icon="clear"
51 i18n-content="controlRemoveFromList"></paper-icon-button> 65 on-click="onRemoveClick_"></paper-icon-button>
52 </div> 66 </div>
53 </paper-material> 67 </paper-material>
54 68
55 <paper-material id="dangerous" hidden$="[[!isDangerous_]]"> 69 <div id="end-cap"></div>
56 <img id="dangerous-icon" alt="">
57 <div id="description"></div>
58 <div id="malware-controls" hidden$="[[!isMalware_]]">
59 <cr-button id="restore" column-type="save"
60 on-click="onRestoreOrSaveClick_"
61 i18n-content="dangerRestore"></cr-button>
62 <cr-button id="dangerous-remove" column-type="discard"
63 on-click="onDangerousRemoveOrDiscardClick_"
64 i18n-content="controlRemoveFromList"></cr-button>
65 </div>
66 <button id="save" column-type="save" i18n-content="dangerSave"
67 on-click="onRestoreOrSaveClick_" hidden$="[[isMalware_]]"></button>
68 <button id="discard" column-type="discard" i18n-content="dangerDiscard"
69 on-click="onDangerousRemoveOrDiscardClick_"
70 hidden$="[[isMalware_]]"></button>
71 </paper-material>
72 70
73 <div id="end-cap"></div>
74 </template> 71 </template>
75 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> 72 <link rel="import" type="css" href="chrome://resources/css/action_link.css">
76 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> 73 <link rel="import" type="css" href="chrome://downloads/shared_style.css">
77 <link rel="import" type="css" href="chrome://downloads/item.css"> 74 <link rel="import" type="css" href="chrome://downloads/item.css">
78 <script src="chrome://downloads/item.js"></script> 75 <script src="chrome://downloads/item.js"></script>
79 </dom-module> 76 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698