| 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 } | 672 } |
| 673 } | 673 } |
| 674 | 674 |
| 675 String get regionOverset => host.regionOverset; | 675 String get regionOverset => host.regionOverset; |
| 676 | 676 |
| 677 List<Range> getRegionFlowRanges() => host.getRegionFlowRanges(); | 677 List<Range> getRegionFlowRanges() => host.getRegionFlowRanges(); |
| 678 | 678 |
| 679 // TODO(jmesserly): rename "created" to "onCreated". | 679 // TODO(jmesserly): rename "created" to "onCreated". |
| 680 void onCreated() => created(); | 680 void onCreated() => created(); |
| 681 | 681 |
| 682 Node get insertionParent => host.insertionParent; | |
| 683 | |
| 684 Stream<Event> get onAbort => host.onAbort; | 682 Stream<Event> get onAbort => host.onAbort; |
| 685 Stream<Event> get onBeforeCopy => host.onBeforeCopy; | 683 Stream<Event> get onBeforeCopy => host.onBeforeCopy; |
| 686 Stream<Event> get onBeforeCut => host.onBeforeCut; | 684 Stream<Event> get onBeforeCut => host.onBeforeCut; |
| 687 Stream<Event> get onBeforePaste => host.onBeforePaste; | 685 Stream<Event> get onBeforePaste => host.onBeforePaste; |
| 688 Stream<Event> get onBlur => host.onBlur; | 686 Stream<Event> get onBlur => host.onBlur; |
| 689 Stream<Event> get onChange => host.onChange; | 687 Stream<Event> get onChange => host.onChange; |
| 690 Stream<MouseEvent> get onClick => host.onClick; | 688 Stream<MouseEvent> get onClick => host.onClick; |
| 691 Stream<MouseEvent> get onContextMenu => host.onContextMenu; | 689 Stream<MouseEvent> get onContextMenu => host.onContextMenu; |
| 692 Stream<Event> get onCopy => host.onCopy; | 690 Stream<Event> get onCopy => host.onCopy; |
| 693 Stream<Event> get onCut => host.onCut; | 691 Stream<Event> get onCut => host.onCut; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 } | 758 } |
| 761 | 759 |
| 762 /** | 760 /** |
| 763 * 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. |
| 764 * Note that this will change behavior of [WebComponent] APIs for tree | 762 * Note that this will change behavior of [WebComponent] APIs for tree |
| 765 * traversal. | 763 * traversal. |
| 766 */ | 764 */ |
| 767 bool useShadowDom = false; | 765 bool useShadowDom = false; |
| 768 | 766 |
| 769 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; | 767 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; |
| OLD | NEW |