| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 // Copyright 2015 The Chromium Authors. All rights reserved. | 2 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <import src="sky-element.sky" /> | 6 <import src="sky-element.sky" /> |
| 7 <import src="sky-icon.sky" /> | 7 <import src="sky-icon.sky" /> |
| 8 | 8 |
| 9 <sky-element attributes="selected:boolean, group:string"> | 9 <sky-element attributes="selected:boolean, group:string"> |
| 10 <template> | 10 <template> |
| 11 <style> | 11 <style> |
| 12 :host { | 12 :host { |
| 13 display: inline-block; | 13 display: inline-flex; |
| 14 -webkit-user-select: none; | 14 -webkit-user-select: none; |
| 15 margin: 8px 16px; | 15 margin: 8px 16px; |
| 16 } | 16 } |
| 17 </style> | 17 </style> |
| 18 <sky-icon size="18" /> | 18 <sky-icon size="18" /> |
| 19 </template> | 19 </template> |
| 20 <script> | 20 <script> |
| 21 import "dart:sky"; | 21 import "dart:sky"; |
| 22 | 22 |
| 23 final Map<Node, _RadioGroupController> _controllerMap = new Map(); | 23 final Map<Node, _RadioGroupController> _controllerMap = new Map(); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 _handleClick(_) { | 105 _handleClick(_) { |
| 106 this.selected = true; | 106 this.selected = true; |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 _init(script) => register(script, SkyRadio); | 110 _init(script) => register(script, SkyRadio); |
| 111 </script> | 111 </script> |
| 112 </sky-element> | 112 </sky-element> |
| OLD | NEW |