| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This library exports all of the commonly used functions and types for | 6 * This library exports all of the commonly used functions and types for |
| 7 * building UI's. | 7 * building UI's. |
| 8 * | 8 * |
| 9 * See this article for more information: | 9 * See this article for more information: |
| 10 * <http://www.dartlang.org/articles/dart-web-components/>. | 10 * <http://www.dartlang.org/articles/dart-web-components/>. |
| 11 */ | 11 */ |
| 12 library polymer; | 12 library polymer; |
| 13 | 13 |
| 14 import 'dart:async'; | 14 import 'dart:async'; |
| 15 import 'dart:mirrors'; | 15 import 'dart:mirrors'; |
| 16 | 16 |
| 17 import 'package:mdv/mdv.dart' as mdv; | 17 import 'package:mdv/mdv.dart' as mdv; |
| 18 import 'package:observe/src/microtask.dart'; | 18 import 'package:observe/src/microtask.dart'; |
| 19 import 'package:path/path.dart' as path; | 19 import 'package:path/path.dart' as path; |
| 20 import 'polymer_element.dart' show registerPolymerElement; | 20 import 'polymer_element.dart' show registerPolymerElement; |
| 21 | 21 |
| 22 export 'package:custom_element/custom_element.dart'; | 22 export 'package:custom_element/custom_element.dart'; |
| 23 export 'package:observe/observe.dart'; | 23 export 'package:observe/observe.dart'; |
| 24 export 'package:observe/observe_html.dart'; | 24 export 'package:observe/html.dart'; |
| 25 export 'package:observe/src/microtask.dart'; | 25 export 'package:observe/src/microtask.dart'; |
| 26 | 26 |
| 27 export 'polymer_element.dart'; | 27 export 'polymer_element.dart'; |
| 28 | 28 |
| 29 | 29 |
| 30 /** Annotation used to automatically register polymer elements. */ | 30 /** Annotation used to automatically register polymer elements. */ |
| 31 class CustomTag { | 31 class CustomTag { |
| 32 final String tagName; | 32 final String tagName; |
| 33 const CustomTag(this.tagName); | 33 const CustomTag(this.tagName); |
| 34 } | 34 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 print("warning: methods marked with @initMethod should take no " | 138 print("warning: methods marked with @initMethod should take no " |
| 139 "arguments, ${method.simpleName} expects some."); | 139 "arguments, ${method.simpleName} expects some."); |
| 140 return; | 140 return; |
| 141 } | 141 } |
| 142 obj.invoke(method.simpleName, const []); | 142 obj.invoke(method.simpleName, const []); |
| 143 } | 143 } |
| 144 | 144 |
| 145 class _InitMethodAnnotation { | 145 class _InitMethodAnnotation { |
| 146 const _InitMethodAnnotation(); | 146 const _InitMethodAnnotation(); |
| 147 } | 147 } |
| OLD | NEW |