| 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 border: Boolean, |
| 14 |
| 13 /* Note that we are not using "aria-label" property here, because | 15 /* Note that we are not using "aria-label" property here, because |
| 14 * we want to pass the label value but not actually declare it as an | 16 * we want to pass the label value but not actually declare it as an |
| 15 * ARIA property anywhere but the actual target element. | 17 * ARIA property anywhere but the actual target element. |
| 16 */ | 18 */ |
| 17 labelForAria: String, | 19 labelForAria: String, |
| 18 }, | 20 }, |
| 19 | 21 |
| 20 focus: function() { | 22 focus: function() { |
| 21 this.$.textButton.focus(); | 23 this.$.textButton.focus(); |
| 22 }, | 24 }, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 * we want to pass the label value but not actually declare it as an | 80 * we want to pass the label value but not actually declare it as an |
| 79 * ARIA property anywhere but the actual target element. | 81 * ARIA property anywhere but the actual target element. |
| 80 */ | 82 */ |
| 81 labelForAria: String | 83 labelForAria: String |
| 82 }, | 84 }, |
| 83 | 85 |
| 84 focus: function() { | 86 focus: function() { |
| 85 this.$.button.focus(); | 87 this.$.button.focus(); |
| 86 }, | 88 }, |
| 87 }); | 89 }); |
| OLD | NEW |