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

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

Issue 1376463003: MD Downloads: change a lowercased, no-ink button to an <a> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 Item = Polymer({ 6 var Item = Polymer({
7 is: 'downloads-item', 7 is: 'downloads-item',
8 8
9 /** 9 /**
10 * @param {!downloads.ThrottledIconLoader} iconLoader 10 * @param {!downloads.ThrottledIconLoader} iconLoader
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 value: function() { 52 value: function() {
53 return { 53 return {
54 cancel: loadTimeData.getString('controlCancel'), 54 cancel: loadTimeData.getString('controlCancel'),
55 discard: loadTimeData.getString('dangerDiscard'), 55 discard: loadTimeData.getString('dangerDiscard'),
56 pause: loadTimeData.getString('controlPause'), 56 pause: loadTimeData.getString('controlPause'),
57 remove: loadTimeData.getString('controlRemoveFromList'), 57 remove: loadTimeData.getString('controlRemoveFromList'),
58 resume: loadTimeData.getString('controlResume'), 58 resume: loadTimeData.getString('controlResume'),
59 restore: loadTimeData.getString('dangerRestore'), 59 restore: loadTimeData.getString('dangerRestore'),
60 retry: loadTimeData.getString('controlRetry'), 60 retry: loadTimeData.getString('controlRetry'),
61 save: loadTimeData.getString('dangerSave'), 61 save: loadTimeData.getString('dangerSave'),
62 show: loadTimeData.getString('controlShowInFolder'),
63 }; 62 };
64 }, 63 },
65 }, 64 },
66 65
67 isActive_: { 66 isActive_: {
68 computed: 'computeIsActive_(' + 67 computed: 'computeIsActive_(' +
69 'data_.state, data_.file_externally_removed)', 68 'data_.state, data_.file_externally_removed)',
70 type: Boolean, 69 type: Boolean,
71 value: true, 70 value: true,
72 }, 71 },
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 }, 325 },
327 326
328 /** @private */ 327 /** @private */
329 onShowClick_: function() { 328 onShowClick_: function() {
330 this.actionService_.show(this.data_.id); 329 this.actionService_.show(this.data_.id);
331 }, 330 },
332 }); 331 });
333 332
334 return {Item: Item}; 333 return {Item: Item};
335 }); 334 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/item.html ('k') | chrome/browser/resources/md_downloads/shared_style.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698