| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 * Custom DOM elements. | 6 * Custom DOM elements. |
| 7 * | 7 * |
| 8 * This library provides access to the Polymer project's | 8 * This library provides access to the Polymer project's |
| 9 * [Custom Elements] | 9 * [Custom Elements] |
| 10 * (http://www.polymer-project.org/platform/custom-elements.html) | 10 * (http://www.polymer-project.org/platform/custom-elements.html) |
| 11 * API, which lets you define your own elements. With custom elements, you | 11 * API, which lets you define your own elements. With custom elements, you |
| 12 * associate code with custom tag names, and then use those custom tag names | 12 * associate code with custom tag names, and then use those custom tag names |
| 13 * as you would any standard tag. For more information, see the | 13 * as you would any standard tag. For more information, see the |
| 14 * [Polymer.dart homepage](https://www.dartlang.org/polymer-dart/) and its | 14 * [Polymer.dart homepage](https://www.dartlang.org/polymer-dart/) and its |
| 15 * [custom element example] | 15 * [custom element example] |
| 16 * (https://www.dartlang.org/polymer-dart/#custom-elements). | 16 * (https://www.dartlang.org/polymer-dart/#custom-elements). |
| 17 */ | 17 */ |
| 18 library custom_element; | 18 library custom_element; |
| 19 | 19 |
| 20 import 'dart:async'; | 20 import 'dart:async'; |
| 21 import 'dart:html'; | 21 import 'dart:html'; |
| 22 import 'package:meta/meta.dart'; | |
| 23 import 'src/custom_tag_name.dart'; | 22 import 'src/custom_tag_name.dart'; |
| 24 | 23 |
| 25 /** | 24 /** |
| 26 * *Deprecated* -- do not use. Extend [HtmlElement] and use | 25 * *Deprecated* -- do not use. Extend [HtmlElement] and use |
| 27 * [document.register] instead. If running on a browser without native | 26 * [document.register] instead. If running on a browser without native |
| 28 * document.register, you can add the polyfill script to your page: | 27 * document.register, you can add the polyfill script to your page: |
| 29 * | 28 * |
| 30 * <script src="packages/custom_element/custom-elements.debug.js"></script> | 29 * <script src="packages/custom_element/custom-elements.debug.js"></script> |
| 31 * | 30 * |
| 32 * You can also use "custom-elements.min.js" for the minified version. | 31 * You can also use "custom-elements.min.js" for the minified version. |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 Stream<TouchEvent> get onTouchLeave => host.onTouchLeave; | 500 Stream<TouchEvent> get onTouchLeave => host.onTouchLeave; |
| 502 Stream<TouchEvent> get onTouchMove => host.onTouchMove; | 501 Stream<TouchEvent> get onTouchMove => host.onTouchMove; |
| 503 Stream<TouchEvent> get onTouchStart => host.onTouchStart; | 502 Stream<TouchEvent> get onTouchStart => host.onTouchStart; |
| 504 Stream<TransitionEvent> get onTransitionEnd => host.onTransitionEnd; | 503 Stream<TransitionEvent> get onTransitionEnd => host.onTransitionEnd; |
| 505 | 504 |
| 506 // TODO(sigmund): do the normal forwarding when dartbug.com/7919 is fixed. | 505 // TODO(sigmund): do the normal forwarding when dartbug.com/7919 is fixed. |
| 507 Stream<WheelEvent> get onMouseWheel { | 506 Stream<WheelEvent> get onMouseWheel { |
| 508 throw new UnsupportedError('onMouseWheel is not supported'); | 507 throw new UnsupportedError('onMouseWheel is not supported'); |
| 509 } | 508 } |
| 510 } | 509 } |
| OLD | NEW |