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