| 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-next-button', | 6 is: 'oobe-next-button', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 disabled: { | 9 disabled: { |
| 10 type: Boolean, | 10 type: Boolean, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 focus: function() { | 32 focus: function() { |
| 33 this.$.iconButton.focus(); | 33 this.$.iconButton.focus(); |
| 34 }, | 34 }, |
| 35 | 35 |
| 36 onClick_: function(e) { | 36 onClick_: function(e) { |
| 37 if (this.disabled) | 37 if (this.disabled) |
| 38 e.stopPropagation(); | 38 e.stopPropagation(); |
| 39 } | 39 } |
| 40 }); | 40 }); |
| 41 |
| 42 Polymer({ |
| 43 is: 'oobe-text-button', |
| 44 |
| 45 properties: { |
| 46 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
| 47 |
| 48 label: String, |
| 49 |
| 50 inverse: Boolean, |
| 51 }, |
| 52 |
| 53 focus: function() { |
| 54 this.$.textButton.focus(); |
| 55 }, |
| 56 |
| 57 onClick_: function(e) { |
| 58 if (this.disabled) |
| 59 e.stopPropagation(); |
| 60 } |
| 61 }); |
| OLD | NEW |