OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |