Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 21607003: Add Event delegation to Elements and groups of elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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:nativewrappers'; 8 import 'dart:nativewrappers';
9 // DO NOT EDIT 9 // DO NOT EDIT
10 // Auto-generated dart:svg library. 10 // Auto-generated dart:svg library.
(...skipping 3417 matching lines...) Expand 10 before | Expand all | Expand 10 after
3428 @Unstable() 3428 @Unstable()
3429 class LengthList extends NativeFieldWrapperClass1 with ListMixin<Length>, Immuta bleListMixin<Length> implements List<Length> { 3429 class LengthList extends NativeFieldWrapperClass1 with ListMixin<Length>, Immuta bleListMixin<Length> implements List<Length> {
3430 3430
3431 @DomName('SVGLengthList.numberOfItems') 3431 @DomName('SVGLengthList.numberOfItems')
3432 @DocsEditable() 3432 @DocsEditable()
3433 int get numberOfItems native "SVGLengthList_numberOfItems_Getter"; 3433 int get numberOfItems native "SVGLengthList_numberOfItems_Getter";
3434 3434
3435 Length operator[](int index) { 3435 Length operator[](int index) {
3436 if (index < 0 || index >= length) 3436 if (index < 0 || index >= length)
3437 throw new RangeError.range(index, 0, length); 3437 throw new RangeError.range(index, 0, length);
3438 return this.getItem(index)(index); 3438 return getItem(index);
Emily Fortuna 2013/08/01 19:43:27 This change is not mine. See https://codereview.ch
3439 } 3439 }
3440 3440
3441 void operator[]=(int index, Length value) { 3441 void operator[]=(int index, Length value) {
3442 throw new UnsupportedError("Cannot assign element of immutable List."); 3442 throw new UnsupportedError("Cannot assign element of immutable List.");
3443 } 3443 }
3444 // -- start List<Length> mixins. 3444 // -- start List<Length> mixins.
3445 // Length is the element type. 3445 // Length is the element type.
3446 3446
3447 // SVG Collections expose numberOfItems rather than length. 3447 // SVG Collections expose numberOfItems rather than length.
3448 int get length => numberOfItems; 3448 int get length => numberOfItems;
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
4017 @Unstable() 4017 @Unstable()
4018 class NumberList extends NativeFieldWrapperClass1 with ListMixin<Number>, Immuta bleListMixin<Number> implements List<Number> { 4018 class NumberList extends NativeFieldWrapperClass1 with ListMixin<Number>, Immuta bleListMixin<Number> implements List<Number> {
4019 4019
4020 @DomName('SVGNumberList.numberOfItems') 4020 @DomName('SVGNumberList.numberOfItems')
4021 @DocsEditable() 4021 @DocsEditable()
4022 int get numberOfItems native "SVGNumberList_numberOfItems_Getter"; 4022 int get numberOfItems native "SVGNumberList_numberOfItems_Getter";
4023 4023
4024 Number operator[](int index) { 4024 Number operator[](int index) {
4025 if (index < 0 || index >= length) 4025 if (index < 0 || index >= length)
4026 throw new RangeError.range(index, 0, length); 4026 throw new RangeError.range(index, 0, length);
4027 return this.getItem(index)(index); 4027 return getItem(index);
4028 } 4028 }
4029 4029
4030 void operator[]=(int index, Number value) { 4030 void operator[]=(int index, Number value) {
4031 throw new UnsupportedError("Cannot assign element of immutable List."); 4031 throw new UnsupportedError("Cannot assign element of immutable List.");
4032 } 4032 }
4033 // -- start List<Number> mixins. 4033 // -- start List<Number> mixins.
4034 // Number is the element type. 4034 // Number is the element type.
4035 4035
4036 // SVG Collections expose numberOfItems rather than length. 4036 // SVG Collections expose numberOfItems rather than length.
4037 int get length => numberOfItems; 4037 int get length => numberOfItems;
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
5087 @Unstable() 5087 @Unstable()
5088 class PathSegList extends NativeFieldWrapperClass1 with ListMixin<PathSeg>, Immu tableListMixin<PathSeg> implements List<PathSeg> { 5088 class PathSegList extends NativeFieldWrapperClass1 with ListMixin<PathSeg>, Immu tableListMixin<PathSeg> implements List<PathSeg> {
5089 5089
5090 @DomName('SVGPathSegList.numberOfItems') 5090 @DomName('SVGPathSegList.numberOfItems')
5091 @DocsEditable() 5091 @DocsEditable()
5092 int get numberOfItems native "SVGPathSegList_numberOfItems_Getter"; 5092 int get numberOfItems native "SVGPathSegList_numberOfItems_Getter";
5093 5093
5094 PathSeg operator[](int index) { 5094 PathSeg operator[](int index) {
5095 if (index < 0 || index >= length) 5095 if (index < 0 || index >= length)
5096 throw new RangeError.range(index, 0, length); 5096 throw new RangeError.range(index, 0, length);
5097 return this.getItem(index)(index); 5097 return getItem(index);
5098 } 5098 }
5099 5099
5100 void operator[]=(int index, PathSeg value) { 5100 void operator[]=(int index, PathSeg value) {
5101 throw new UnsupportedError("Cannot assign element of immutable List."); 5101 throw new UnsupportedError("Cannot assign element of immutable List.");
5102 } 5102 }
5103 // -- start List<PathSeg> mixins. 5103 // -- start List<PathSeg> mixins.
5104 // PathSeg is the element type. 5104 // PathSeg is the element type.
5105 5105
5106 // SVG Collections expose numberOfItems rather than length. 5106 // SVG Collections expose numberOfItems rather than length.
5107 int get length => numberOfItems; 5107 int get length => numberOfItems;
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
5995 @Unstable() 5995 @Unstable()
5996 class StringList extends NativeFieldWrapperClass1 with ListMixin<String>, Immuta bleListMixin<String> implements List<String> { 5996 class StringList extends NativeFieldWrapperClass1 with ListMixin<String>, Immuta bleListMixin<String> implements List<String> {
5997 5997
5998 @DomName('SVGStringList.numberOfItems') 5998 @DomName('SVGStringList.numberOfItems')
5999 @DocsEditable() 5999 @DocsEditable()
6000 int get numberOfItems native "SVGStringList_numberOfItems_Getter"; 6000 int get numberOfItems native "SVGStringList_numberOfItems_Getter";
6001 6001
6002 String operator[](int index) { 6002 String operator[](int index) {
6003 if (index < 0 || index >= length) 6003 if (index < 0 || index >= length)
6004 throw new RangeError.range(index, 0, length); 6004 throw new RangeError.range(index, 0, length);
6005 return this.getItem(index)(index); 6005 return getItem(index);
6006 } 6006 }
6007 6007
6008 void operator[]=(int index, String value) { 6008 void operator[]=(int index, String value) {
6009 throw new UnsupportedError("Cannot assign element of immutable List."); 6009 throw new UnsupportedError("Cannot assign element of immutable List.");
6010 } 6010 }
6011 // -- start List<String> mixins. 6011 // -- start List<String> mixins.
6012 // String is the element type. 6012 // String is the element type.
6013 6013
6014 // SVG Collections expose numberOfItems rather than length. 6014 // SVG Collections expose numberOfItems rather than length.
6015 int get length => numberOfItems; 6015 int get length => numberOfItems;
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
7132 @Unstable() 7132 @Unstable()
7133 class TransformList extends NativeFieldWrapperClass1 with ListMixin<Transform>, ImmutableListMixin<Transform> implements List<Transform> { 7133 class TransformList extends NativeFieldWrapperClass1 with ListMixin<Transform>, ImmutableListMixin<Transform> implements List<Transform> {
7134 7134
7135 @DomName('SVGTransformList.numberOfItems') 7135 @DomName('SVGTransformList.numberOfItems')
7136 @DocsEditable() 7136 @DocsEditable()
7137 int get numberOfItems native "SVGTransformList_numberOfItems_Getter"; 7137 int get numberOfItems native "SVGTransformList_numberOfItems_Getter";
7138 7138
7139 Transform operator[](int index) { 7139 Transform operator[](int index) {
7140 if (index < 0 || index >= length) 7140 if (index < 0 || index >= length)
7141 throw new RangeError.range(index, 0, length); 7141 throw new RangeError.range(index, 0, length);
7142 return this.getItem(index)(index); 7142 return getItem(index);
7143 } 7143 }
7144 7144
7145 void operator[]=(int index, Transform value) { 7145 void operator[]=(int index, Transform value) {
7146 throw new UnsupportedError("Cannot assign element of immutable List."); 7146 throw new UnsupportedError("Cannot assign element of immutable List.");
7147 } 7147 }
7148 // -- start List<Transform> mixins. 7148 // -- start List<Transform> mixins.
7149 // Transform is the element type. 7149 // Transform is the element type.
7150 7150
7151 // SVG Collections expose numberOfItems rather than length. 7151 // SVG Collections expose numberOfItems rather than length.
7152 int get length => numberOfItems; 7152 int get length => numberOfItems;
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
8030 @Unstable() 8030 @Unstable()
8031 abstract class _SVGVKernElement extends SvgElement { 8031 abstract class _SVGVKernElement extends SvgElement {
8032 // To suppress missing implicit constructor warnings. 8032 // To suppress missing implicit constructor warnings.
8033 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } 8033 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); }
8034 8034
8035 @DomName('SVGVKernElement.SVGVKernElement') 8035 @DomName('SVGVKernElement.SVGVKernElement')
8036 @DocsEditable() 8036 @DocsEditable()
8037 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 8037 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
8038 8038
8039 } 8039 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698