| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 Polymer({ | 5 Polymer({ |
| 6 is: 'oobe-text-button', | 6 is: 'oobe-text-button', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 disabled: {type: Boolean, value: false, reflectToAttribute: true}, | 9 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
| 10 | 10 |
| 11 inverse: Boolean, | 11 inverse: Boolean, |
| 12 }, | 12 }, |
| 13 | 13 |
| 14 focus: function() { | 14 focus: function() { |
| 15 this.$.textButton.focus(); | 15 this.$.textButton.focus(); |
| 16 }, | 16 }, |
| 17 | 17 |
| 18 onClick_: function(e) { | 18 onClick_: function(e) { |
| 19 if (this.disabled) | 19 if (this.disabled) |
| 20 e.stopPropagation(); | 20 e.stopPropagation(); |
| 21 } | 21 } |
| 22 }); | 22 }); |
| 23 | 23 |
| 24 Polymer({ | 24 Polymer({ |
| 25 is: 'oobe-back-button', |
| 26 |
| 27 properties: { |
| 28 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
| 29 }, |
| 30 |
| 31 focus: function() { |
| 32 this.$.button.focus(); |
| 33 }, |
| 34 |
| 35 onClick_: function(e) { |
| 36 if (this.disabled) |
| 37 e.stopPropagation(); |
| 38 } |
| 39 }); |
| 40 |
| 41 Polymer({ |
| 25 is: 'oobe-welcome-secondary-button', | 42 is: 'oobe-welcome-secondary-button', |
| 26 | 43 |
| 27 properties: { | 44 properties: { |
| 28 icon: String, | 45 icon: String, |
| 29 | 46 |
| 30 ariaLabel: String | 47 ariaLabel: String |
| 31 }, | 48 }, |
| 32 }); | 49 }); |
| OLD | NEW |