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/framework/sky-element.sky" /> | 6 <import src="/sky/framework/elements/sky-element.sky" /> |
7 <sky-element> | 7 <sky-element> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 div { | 10 div { |
11 height: 50px; | 11 height: 50px; |
12 width: 50px; | 12 width: 50px; |
13 background-color: green; | 13 background-color: green; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <div>Hi</div> | 16 <div>Hi</div> |
17 </template> | 17 </template> |
18 <script> | 18 <script> |
19 @Tagname('example') | 19 @Tagname('example') |
20 class ExampleElement extends SkyElement { | 20 class ExampleElement extends SkyElement { |
21 } | 21 } |
22 | 22 |
23 _init(script) => register(script, ExampleElement); | 23 _init(script) => register(script, ExampleElement); |
24 </script> | 24 </script> |
25 </sky-element> | 25 </sky-element> |
OLD | NEW |