| 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 InkyTextButton = Polymer({ |
| 7 is: 'inky-text-button', |
| 8 |
| 9 behaviors: [ |
| 10 Polymer.PaperInkyFocusBehavior |
| 11 ], |
| 12 |
| 13 hostAttributes: { |
| 14 role: 'button', |
| 15 tabindex: 0, |
| 16 }, |
| 17 }); |
| 18 |
| 6 var Item = Polymer({ | 19 var Item = Polymer({ |
| 7 is: 'downloads-item', | 20 is: 'downloads-item', |
| 8 | 21 |
| 9 properties: { | 22 properties: { |
| 10 data: { | 23 data: { |
| 11 type: Object, | 24 type: Object, |
| 12 }, | 25 }, |
| 13 | 26 |
| 14 hideDate: { | 27 hideDate: { |
| 15 type: Boolean, | 28 type: Boolean, |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 onSaveDangerousTap_: function() { | 325 onSaveDangerousTap_: function() { |
| 313 downloads.ActionService.getInstance().saveDangerous(this.data.id); | 326 downloads.ActionService.getInstance().saveDangerous(this.data.id); |
| 314 }, | 327 }, |
| 315 | 328 |
| 316 /** @private */ | 329 /** @private */ |
| 317 onShowTap_: function() { | 330 onShowTap_: function() { |
| 318 downloads.ActionService.getInstance().show(this.data.id); | 331 downloads.ActionService.getInstance().show(this.data.id); |
| 319 }, | 332 }, |
| 320 }); | 333 }); |
| 321 | 334 |
| 322 return {Item: Item}; | 335 return { |
| 336 InkyTextButton: InkyTextButton, |
| 337 Item: Item, |
| 338 }; |
| 323 }); | 339 }); |
| OLD | NEW |