| 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. It is equivalent to the following imports: | 7 * building UI's. It is equivalent to the following imports: |
| 8 * | 8 * |
| 9 * import 'package:web_ui/observe.dart'; | 9 * import 'package:web_ui/observe.dart'; |
| 10 * import 'package:web_ui/safe_html.dart'; | 10 * import 'package:web_ui/safe_html.dart'; |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 void $dom_removeAttribute(String name) => | 610 void $dom_removeAttribute(String name) => |
| 611 host.$dom_removeAttribute(name); | 611 host.$dom_removeAttribute(name); |
| 612 | 612 |
| 613 void $dom_setAttribute(String name, String value) => | 613 void $dom_setAttribute(String name, String value) => |
| 614 host.$dom_setAttribute(name, value); | 614 host.$dom_setAttribute(name, value); |
| 615 | 615 |
| 616 get $dom_attributes => host.$dom_attributes; | 616 get $dom_attributes => host.$dom_attributes; |
| 617 | 617 |
| 618 List<Node> get $dom_childNodes => host.$dom_childNodes; | 618 List<Node> get $dom_childNodes => host.$dom_childNodes; |
| 619 | 619 |
| 620 Node get $dom_firstChild => host.$dom_firstChild; | 620 Node get firstChild => host.firstChild; |
| 621 | 621 |
| 622 Node get $dom_lastChild => host.$dom_lastChild; | 622 Node get lastChild => host.lastChild; |
| 623 | 623 |
| 624 String get localName => host.localName; | 624 String get localName => host.localName; |
| 625 String get $dom_localName => host.$dom_localName; | 625 String get $dom_localName => host.$dom_localName; |
| 626 | 626 |
| 627 String get namespaceUri => host.namespaceUri; | 627 String get namespaceUri => host.namespaceUri; |
| 628 String get $dom_namespaceUri => host.$dom_namespaceUri; | 628 String get $dom_namespaceUri => host.$dom_namespaceUri; |
| 629 | 629 |
| 630 int get nodeType => host.nodeType; | 630 int get nodeType => host.nodeType; |
| 631 | 631 |
| 632 void $dom_addEventListener(String type, EventListener listener, | 632 void $dom_addEventListener(String type, EventListener listener, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 } | 758 } |
| 759 | 759 |
| 760 /** | 760 /** |
| 761 * Set this to true to use native Shadow DOM if it is supported. | 761 * Set this to true to use native Shadow DOM if it is supported. |
| 762 * Note that this will change behavior of [WebComponent] APIs for tree | 762 * Note that this will change behavior of [WebComponent] APIs for tree |
| 763 * traversal. | 763 * traversal. |
| 764 */ | 764 */ |
| 765 bool useShadowDom = false; | 765 bool useShadowDom = false; |
| 766 | 766 |
| 767 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; | 767 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; |
| OLD | NEW |