| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 Polymer({ |
| 6 is: 'oobe-next-button', |
| 7 |
| 8 properties: { |
| 9 disabled: { |
| 10 type: Boolean, |
| 11 value: false, |
| 12 } |
| 13 }, |
| 14 |
| 15 onClick_: function(e) { |
| 16 if (this.disabled) |
| 17 e.stopPropagation(); |
| 18 } |
| 19 }); |
| 20 |
| 21 Polymer({ |
| 22 is: 'oobe-icon-button', |
| 23 |
| 24 properties: { |
| 25 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
| 26 |
| 27 icon: String, |
| 28 |
| 29 ariaLabel: String |
| 30 }, |
| 31 |
| 32 focus: function() { |
| 33 this.$.iconButton.focus(); |
| 34 }, |
| 35 |
| 36 onClick_: function(e) { |
| 37 if (this.disabled) |
| 38 e.stopPropagation(); |
| 39 } |
| 40 }); |
| OLD | NEW |