Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: sky/sdk/lib/framework/elements/sky-element.sky

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <script> 6 <script>
7 import "dart:mirrors"; 7 import "dart:mirrors";
8 import "dart:sky"; 8 import "dart:sky";
9 9
10 typedef dynamic _Converter(String value); 10 typedef dynamic _Converter(String value);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 throw new UnsupportedError('@Tagname can only be used on descendants of SkyE lement'); 155 throw new UnsupportedError('@Tagname can only be used on descendants of SkyE lement');
156 156
157 String tagName = _getTagName(type); 157 String tagName = _getTagName(type);
158 Element template = definition.querySelector('template'); 158 Element template = definition.querySelector('template');
159 159
160 document.registerElement(tagName, type); 160 document.registerElement(tagName, type);
161 _registery[tagName] = new _Registration(template) 161 _registery[tagName] = new _Registration(template)
162 ..parseAttributeSpec(definition); 162 ..parseAttributeSpec(definition);
163 } 163 }
164 </script> 164 </script>
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/elements/sky-drawer-header.sky ('k') | sky/sdk/lib/framework/elements/sky-icon.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698