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

Side by Side Diff: chrome/browser/resources/cleanup_tool/manager.html

Issue 2788743002: Cleanup Tool WebUI: Add functional HTML and skeleton JS for main content (Closed)
Patch Set: Created 3 years, 8 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
(Empty)
1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
3 <link rel="import" href="chrome://resources/html/cr.html">
4 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
5 <link rel="import" href="chrome://resources/html/icon.html">
6 <link rel="import" href="chrome://resources/html/polymer.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html">
10
11 <dom-module id="cleanup-manager">
12 <template>
13 <style>
14 #content {
15 margin: 6px auto;
16 max-width: var(--cleanup-card-width);
17 }
18
19 :host {
20 -webkit-margin-start: 3px;
21 display: block;
22 }
23
24 #cleanup-tool-title {
25 margin: 24px auto 10px;
26 }
27
28 .section-title {
29 color: var(--paper-grey-600);
30 font-size: 13px;
31 font-weight: 500;
32 }
33
34 #card {
35 @apply(--shadow-elevation-2dp);
36 background: white;
37 border-radius: 2px;
38 font-size: 16px;
39 font-weight: 500;
40 }
41
42 .card-section {
43 align-items: center;
44 border-top: 1px solid var(--paper-grey-400);
45 display: flex;
46 min-height: 103px;
47 }
48
49 .card-section:first-child {
50 border-top: none;
51 }
52
53 .icon-wrapper {
54 margin: 0 24px;
55 }
56
57 .clean-icon {
58 color: var(--paper-blue-700);
59 }
60
61 .infected-icon {
62 color: var(--paper-red-700);
63 }
64
65 .icon {
66 height: 32px;
67 width: 32px;
68 }
69
70 .scan-details {
71 flex: 1;
72 min-width: 200px;
73 }
74
75 .under-text {
76 color: var(--paper-grey-500);
77 }
78
79 #spinner-container {
80 min-width: 28px;
81 }
82
83 #tool-action-container {
84 color: var(--paper-grey-700);
85 font-size: 18px;
86 padding: 24px;
87 }
88
89 .scan-or-cleanup-action {
90 @apply(--cr-actionable);
91 }
92
93 #about-link {
94 color: var(--paper-blue-700);
95 padding: 24px;
96 text-decoration: none;
97 }
98 </style>
99
100 <div id="content">
101 <h3 id="cleanup-tool-title" class="section-title"
102 i18n-content="sectionHeader"></h3>
103 <div id="card">
104 <div class="card-section">
105 <div id="status-icon-wrapper" class="icon-wrapper">
106 <iron-icon icon="[[getStatusIcon_(hasScanResults, isInfected)]]"
107 class$="icon [[getIconClassName_(hasScanResults, isInfected)]]">
tommycli 2017/03/30 20:18:00 Can we just give this icon an id instead of a clas
proberge 2017/03/30 21:04:33 I previously gave this icon a class "icon" and an
tommycli 2017/04/05 20:47:25 I think the getIconClassName_ is just fine. I'm ju
proberge 2017/04/05 21:34:06 Done.
108 </iron-icon>
109 </div>
110 <div class="scan-details">
111 <div id="scan-detections">
112 [[detectionStatusText]]
113 </div>
114 <div class="under-text">
115 [[detectionTimeText]]
116 </div>
117 </div>
118 <div id="spinner-container" hidden="[[!isRunningScanner]]">
119 <paper-spinner active="[[isRunningScanner]]"></paper-spinner>
tommycli 2017/03/30 20:18:00 If it's hidden, can this paper-spinner always be a
proberge 2017/03/30 21:04:33 Done.
120 </div>
121 <div id="tool-action-container">
122 <div class="scan-or-cleanup-action" i18n-content="scanAction"
123 hidden="[[!shouldShowScan_(hasScanResults, isRunningScanner)]]"
124 on-tap="onScanTap_"></div>
125 <div i18n-content="scanning" hidden="[[!isRunningScanner]]"></div>
126 <div class="scan-or-cleanup-action" i18n-content="cleanAction"
127 hidden="[[!hasScanResults]]" on-tap="onCleanupTap_"></div>
128 </div>
129 </div>
130 <div class="card-section">
131 <!-- TODO(proberge): Replace answer ID with a P-link as per
132 crbug.com/679462 -->
133 <a id="about-link" i18n-content="about"
134 href="https://support.google.com/chrome/answer/6086368"></a>
135 </div>
136 </div>
137 </div>
138
139 </template>
140 <script src="chrome://cleanup/manager.js"></script>
141 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698