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', | |
7 | |
8 properties: { | |
9 disabled: { | |
10 type: Boolean, | |
11 value: false, | |
12 } | |
13 }, | |
14 | |
15 onClick_: function(e) { | |
16 if (this.disabled) | |
17 e.stopPropagation(); | |
18 } | |
19 }); | |
20 | |
21 Polymer({ | |
22 is: 'oobe-icon-button', | 6 is: 'oobe-icon-button', |
23 | 7 |
24 properties: { | 8 properties: { |
25 disabled: {type: Boolean, value: false, reflectToAttribute: true}, | 9 disabled: {type: Boolean, value: false, reflectToAttribute: true}, |
26 | 10 |
27 icon: String, | 11 icon: String, |
28 | 12 |
29 ariaLabel: String | 13 ariaLabel: String |
30 }, | 14 }, |
31 | 15 |
(...skipping 20 matching lines...) Expand all Loading... |
52 | 36 |
53 focus: function() { | 37 focus: function() { |
54 this.$.textButton.focus(); | 38 this.$.textButton.focus(); |
55 }, | 39 }, |
56 | 40 |
57 onClick_: function(e) { | 41 onClick_: function(e) { |
58 if (this.disabled) | 42 if (this.disabled) |
59 e.stopPropagation(); | 43 e.stopPropagation(); |
60 } | 44 } |
61 }); | 45 }); |
OLD | NEW |