| 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 |
| 13 ariaLabel: String, |
| 12 }, | 14 }, |
| 13 | 15 |
| 14 focus: function() { | 16 focus: function() { |
| 15 this.$.textButton.focus(); | 17 this.$.textButton.focus(); |
| 16 }, | 18 }, |
| 17 | 19 |
| 18 onClick_: function(e) { | 20 onClick_: function(e) { |
| 19 if (this.disabled) | 21 if (this.disabled) |
| 20 e.stopPropagation(); | 22 e.stopPropagation(); |
| 21 } | 23 } |
| 22 }); | 24 }); |
| 23 | 25 |
| 24 Polymer({ | 26 Polymer({ |
| 25 is: 'oobe-back-button', | 27 is: 'oobe-back-button', |
| 26 | 28 |
| 27 properties: { | 29 properties: { |
| 28 disabled: {type: Boolean, value: false, reflectToAttribute: true}, | 30 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
| 31 |
| 32 ariaLabel: String, |
| 29 }, | 33 }, |
| 30 | 34 |
| 31 focus: function() { | 35 focus: function() { |
| 32 this.$.button.focus(); | 36 this.$.button.focus(); |
| 33 }, | 37 }, |
| 34 | 38 |
| 35 onClick_: function(e) { | 39 onClick_: function(e) { |
| 36 if (this.disabled) | 40 if (this.disabled) |
| 37 e.stopPropagation(); | 41 e.stopPropagation(); |
| 38 } | 42 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 57 | 61 |
| 58 Polymer({ | 62 Polymer({ |
| 59 is: 'oobe-welcome-secondary-button', | 63 is: 'oobe-welcome-secondary-button', |
| 60 | 64 |
| 61 properties: { | 65 properties: { |
| 62 icon: String, | 66 icon: String, |
| 63 | 67 |
| 64 ariaLabel: String | 68 ariaLabel: String |
| 65 }, | 69 }, |
| 66 }); | 70 }); |
| OLD | NEW |