| 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 21 matching lines...) Expand all Loading... |
| 32 this.$.button.focus(); | 32 this.$.button.focus(); |
| 33 }, | 33 }, |
| 34 | 34 |
| 35 onClick_: function(e) { | 35 onClick_: function(e) { |
| 36 if (this.disabled) | 36 if (this.disabled) |
| 37 e.stopPropagation(); | 37 e.stopPropagation(); |
| 38 } | 38 } |
| 39 }); | 39 }); |
| 40 | 40 |
| 41 Polymer({ | 41 Polymer({ |
| 42 is: 'oobe-next-button', |
| 43 |
| 44 properties: { |
| 45 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
| 46 }, |
| 47 |
| 48 focus: function() { |
| 49 this.$.button.focus(); |
| 50 }, |
| 51 |
| 52 onClick_: function(e) { |
| 53 if (this.disabled) |
| 54 e.stopPropagation(); |
| 55 } |
| 56 }); |
| 57 |
| 58 Polymer({ |
| 42 is: 'oobe-welcome-secondary-button', | 59 is: 'oobe-welcome-secondary-button', |
| 43 | 60 |
| 44 properties: { | 61 properties: { |
| 45 icon: String, | 62 icon: String, |
| 46 | 63 |
| 47 ariaLabel: String | 64 ariaLabel: String |
| 48 }, | 65 }, |
| 49 }); | 66 }); |
| OLD | NEW |