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

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

Issue 1964493002: MD Downloads: use custom iconset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CrIconsCrOS
Patch Set: rebase Created 4 years, 7 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('downloads', function() { 5 cr.define('downloads', function() {
6 var InkyTextButton = Polymer({ 6 var InkyTextButton = Polymer({
7 is: 'inky-text-button', 7 is: 'inky-text-button',
8 8
9 behaviors: [ 9 behaviors: [
10 Polymer.PaperInkyFocusBehavior 10 Polymer.PaperInkyFocusBehavior
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 computeDangerIcon_: function() { 122 computeDangerIcon_: function() {
123 if (!this.isDangerous_) 123 if (!this.isDangerous_)
124 return ''; 124 return '';
125 125
126 switch (this.data.danger_type) { 126 switch (this.data.danger_type) {
127 case downloads.DangerType.DANGEROUS_CONTENT: 127 case downloads.DangerType.DANGEROUS_CONTENT:
128 case downloads.DangerType.DANGEROUS_HOST: 128 case downloads.DangerType.DANGEROUS_HOST:
129 case downloads.DangerType.DANGEROUS_URL: 129 case downloads.DangerType.DANGEROUS_URL:
130 case downloads.DangerType.POTENTIALLY_UNWANTED: 130 case downloads.DangerType.POTENTIALLY_UNWANTED:
131 case downloads.DangerType.UNCOMMON_CONTENT: 131 case downloads.DangerType.UNCOMMON_CONTENT:
132 return 'remove-circle'; 132 return 'downloads:remove-circle';
133 default: 133 default:
134 return 'warning'; 134 return 'downloads:warning';
135 } 135 }
136 }, 136 },
137 137
138 /** @private */ 138 /** @private */
139 computeDate_: function() { 139 computeDate_: function() {
140 assert(typeof this.data.hideDate == 'boolean'); 140 assert(typeof this.data.hideDate == 'boolean');
141 if (this.data.hideDate) 141 if (this.data.hideDate)
142 return ''; 142 return '';
143 return assert(this.data.since_string || this.data.date_string); 143 return assert(this.data.since_string || this.data.date_string);
144 }, 144 },
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 onShowTap_: function() { 310 onShowTap_: function() {
311 downloads.ActionService.getInstance().show(this.data.id); 311 downloads.ActionService.getInstance().show(this.data.id);
312 }, 312 },
313 }); 313 });
314 314
315 return { 315 return {
316 InkyTextButton: InkyTextButton, 316 InkyTextButton: InkyTextButton,
317 Item: Item, 317 Item: Item,
318 }; 318 };
319 }); 319 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/item.html ('k') | chrome/browser/resources/md_downloads/vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698