| 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 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 onClick_: function(e) { | 64 onClick_: function(e) { |
| 65 if (this.disabled) | 65 if (this.disabled) |
| 66 e.stopPropagation(); | 66 e.stopPropagation(); |
| 67 } | 67 } |
| 68 }); | 68 }); |
| 69 | 69 |
| 70 Polymer({ | 70 Polymer({ |
| 71 is: 'oobe-welcome-secondary-button', | 71 is: 'oobe-welcome-secondary-button', |
| 72 | 72 |
| 73 properties: { | 73 properties: { |
| 74 icon: String, | 74 icon1x: String, |
| 75 icon2x: String, |
| 75 | 76 |
| 76 /* Note that we are not using "aria-label" property here, because | 77 /* Note that we are not using "aria-label" property here, because |
| 77 * we want to pass the label value but not actually declare it as an | 78 * we want to pass the label value but not actually declare it as an |
| 78 * ARIA property anywhere but the actual target element. | 79 * ARIA property anywhere but the actual target element. |
| 79 */ | 80 */ |
| 80 labelForAria: String | 81 labelForAria: String |
| 81 }, | 82 }, |
| 82 | 83 |
| 83 focus: function() { | 84 focus: function() { |
| 84 this.$.button.focus(); | 85 this.$.button.focus(); |
| 85 }, | 86 }, |
| 86 }); | 87 }); |
| OLD | NEW |