| OLD | NEW |
| 1 library dart.dom.svg; | 1 library dart.dom.svg; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev' hide deprecated; | 5 import 'dart:_collection-dev' hide deprecated; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa
me; | 8 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa
me; |
| 9 import 'dart:_foreign_helper' show JS; | 9 import 'dart:_foreign_helper' show JS; |
| 10 import 'dart:_interceptors' show Interceptor; | 10 import 'dart:_interceptors' show Interceptor; |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 final ElementInstance nextSibling; | 841 final ElementInstance nextSibling; |
| 842 | 842 |
| 843 @DomName('SVGElementInstance.parentNode') | 843 @DomName('SVGElementInstance.parentNode') |
| 844 @DocsEditable() | 844 @DocsEditable() |
| 845 final ElementInstance parentNode; | 845 final ElementInstance parentNode; |
| 846 | 846 |
| 847 @DomName('SVGElementInstance.previousSibling') | 847 @DomName('SVGElementInstance.previousSibling') |
| 848 @DocsEditable() | 848 @DocsEditable() |
| 849 final ElementInstance previousSibling; | 849 final ElementInstance previousSibling; |
| 850 | 850 |
| 851 // From EventTarget | |
| 852 | |
| 853 @JSName('addEventListener') | |
| 854 @DomName('SVGElementInstance.addEventListener') | |
| 855 @DocsEditable() | |
| 856 @Experimental() // untriaged | |
| 857 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | |
| 858 | |
| 859 @DomName('SVGElementInstance.dispatchEvent') | |
| 860 @DocsEditable() | |
| 861 @Experimental() // untriaged | |
| 862 bool dispatchEvent(Event event) native; | |
| 863 | |
| 864 @JSName('removeEventListener') | |
| 865 @DomName('SVGElementInstance.removeEventListener') | |
| 866 @DocsEditable() | |
| 867 @Experimental() // untriaged | |
| 868 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | |
| 869 | |
| 870 @DomName('SVGElementInstance.onabort') | 851 @DomName('SVGElementInstance.onabort') |
| 871 @DocsEditable() | 852 @DocsEditable() |
| 872 Stream<Event> get onAbort => abortEvent.forTarget(this); | 853 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 873 | 854 |
| 874 @DomName('SVGElementInstance.onbeforecopy') | 855 @DomName('SVGElementInstance.onbeforecopy') |
| 875 @DocsEditable() | 856 @DocsEditable() |
| 876 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); | 857 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); |
| 877 | 858 |
| 878 @DomName('SVGElementInstance.onbeforecut') | 859 @DomName('SVGElementInstance.onbeforecut') |
| 879 @DocsEditable() | 860 @DocsEditable() |
| (...skipping 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4752 @DocsEditable() | 4733 @DocsEditable() |
| 4753 @DomName('SVGDocument') | 4734 @DomName('SVGDocument') |
| 4754 @Unstable() | 4735 @Unstable() |
| 4755 class SvgDocument extends Document native "SVGDocument" { | 4736 class SvgDocument extends Document native "SVGDocument" { |
| 4756 // To suppress missing implicit constructor warnings. | 4737 // To suppress missing implicit constructor warnings. |
| 4757 factory SvgDocument._() { throw new UnsupportedError("Not supported"); } | 4738 factory SvgDocument._() { throw new UnsupportedError("Not supported"); } |
| 4758 | 4739 |
| 4759 @DomName('SVGDocument.rootElement') | 4740 @DomName('SVGDocument.rootElement') |
| 4760 @DocsEditable() | 4741 @DocsEditable() |
| 4761 final SvgSvgElement rootElement; | 4742 final SvgSvgElement rootElement; |
| 4762 | |
| 4763 @JSName('createEvent') | |
| 4764 @DomName('SVGDocument.createEvent') | |
| 4765 @DocsEditable() | |
| 4766 Event $dom_createEvent(String eventType) native; | |
| 4767 } | 4743 } |
| 4768 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 4744 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4769 // for details. All rights reserved. Use of this source code is governed by a | 4745 // for details. All rights reserved. Use of this source code is governed by a |
| 4770 // BSD-style license that can be found in the LICENSE file. | 4746 // BSD-style license that can be found in the LICENSE file. |
| 4771 | 4747 |
| 4772 | 4748 |
| 4773 class _AttributeClassSet extends CssClassSetImpl { | 4749 class _AttributeClassSet extends CssClassSetImpl { |
| 4774 final Element _element; | 4750 final Element _element; |
| 4775 | 4751 |
| 4776 _AttributeClassSet(this._element); | 4752 _AttributeClassSet(this._element); |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6217 @DomName('SVGVKernElement') | 6193 @DomName('SVGVKernElement') |
| 6218 @Unstable() | 6194 @Unstable() |
| 6219 abstract class _SVGVKernElement extends SvgElement native "SVGVKernElement" { | 6195 abstract class _SVGVKernElement extends SvgElement native "SVGVKernElement" { |
| 6220 // To suppress missing implicit constructor warnings. | 6196 // To suppress missing implicit constructor warnings. |
| 6221 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } | 6197 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } |
| 6222 | 6198 |
| 6223 @DomName('SVGVKernElement.SVGVKernElement') | 6199 @DomName('SVGVKernElement.SVGVKernElement') |
| 6224 @DocsEditable() | 6200 @DocsEditable() |
| 6225 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 6201 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
| 6226 } | 6202 } |
| OLD | NEW |