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

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 15007011: Revert "Revert "dart2js native mixin application should extend 'Interface', not 'Object'"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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'; 5 import 'dart:_collection-dev';
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 // DO NOT EDIT - unless you are editing documentation as per: 11 // DO NOT EDIT - unless you are editing documentation as per:
11 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 12 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
12 // Auto-generated dart:svg library. 13 // Auto-generated dart:svg library.
13 14
14 15
15 16
16 17
17 18
18
19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20 // for details. All rights reserved. Use of this source code is governed by a 20 // for details. All rights reserved. Use of this source code is governed by a
21 // BSD-style license that can be found in the LICENSE file. 21 // BSD-style license that can be found in the LICENSE file.
22 22
23 23
24 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); 24 final _START_TAG_REGEXP = new RegExp('<(\\w+)');
25 25
26 class _SvgElementFactoryProvider { 26 class _SvgElementFactoryProvider {
27 static SvgElement createSvgElement_tag(String tag) { 27 static SvgElement createSvgElement_tag(String tag) {
28 final Element temp = 28 final Element temp =
(...skipping 3074 matching lines...) Expand 10 before | Expand all | Expand 10 after
3103 @DocsEditable 3103 @DocsEditable
3104 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; 3104 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native;
3105 } 3105 }
3106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3107 // for details. All rights reserved. Use of this source code is governed by a 3107 // for details. All rights reserved. Use of this source code is governed by a
3108 // BSD-style license that can be found in the LICENSE file. 3108 // BSD-style license that can be found in the LICENSE file.
3109 3109
3110 3110
3111 @DocsEditable 3111 @DocsEditable
3112 @DomName('SVGLengthList') 3112 @DomName('SVGLengthList')
3113 class LengthList extends Object with ListMixin<Length>, ImmutableListMixin<Lengt h> implements JavaScriptIndexingBehavior, List<Length> native "SVGLengthList" { 3113 class LengthList extends Interceptor with ListMixin<Length>, ImmutableListMixin< Length> implements JavaScriptIndexingBehavior, List<Length> native "SVGLengthLis t" {
3114 3114
3115 @DomName('SVGLengthList.numberOfItems') 3115 @DomName('SVGLengthList.numberOfItems')
3116 @DocsEditable 3116 @DocsEditable
3117 final int numberOfItems; 3117 final int numberOfItems;
3118 3118
3119 Length operator[](int index) { 3119 Length operator[](int index) {
3120 if (JS("bool", "# >>> 0 !== # || # >= #", index, 3120 if (JS("bool", "# >>> 0 !== # || # >= #", index,
3121 index, index, length)) 3121 index, index, length))
3122 throw new RangeError.range(index, 0, length); 3122 throw new RangeError.range(index, 0, length);
3123 return this.getItem(index); 3123 return this.getItem(index);
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3605 @DocsEditable 3605 @DocsEditable
3606 num value; 3606 num value;
3607 } 3607 }
3608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3609 // for details. All rights reserved. Use of this source code is governed by a 3609 // for details. All rights reserved. Use of this source code is governed by a
3610 // BSD-style license that can be found in the LICENSE file. 3610 // BSD-style license that can be found in the LICENSE file.
3611 3611
3612 3612
3613 @DocsEditable 3613 @DocsEditable
3614 @DomName('SVGNumberList') 3614 @DomName('SVGNumberList')
3615 class NumberList extends Object with ListMixin<Number>, ImmutableListMixin<Numbe r> implements JavaScriptIndexingBehavior, List<Number> native "SVGNumberList" { 3615 class NumberList extends Interceptor with ListMixin<Number>, ImmutableListMixin< Number> implements JavaScriptIndexingBehavior, List<Number> native "SVGNumberLis t" {
3616 3616
3617 @DomName('SVGNumberList.numberOfItems') 3617 @DomName('SVGNumberList.numberOfItems')
3618 @DocsEditable 3618 @DocsEditable
3619 final int numberOfItems; 3619 final int numberOfItems;
3620 3620
3621 Number operator[](int index) { 3621 Number operator[](int index) {
3622 if (JS("bool", "# >>> 0 !== # || # >= #", index, 3622 if (JS("bool", "# >>> 0 !== # || # >= #", index,
3623 index, index, length)) 3623 index, index, length))
3624 throw new RangeError.range(index, 0, length); 3624 throw new RangeError.range(index, 0, length);
3625 return this.getItem(index); 3625 return this.getItem(index);
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
4366 @DocsEditable 4366 @DocsEditable
4367 num y; 4367 num y;
4368 } 4368 }
4369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4370 // for details. All rights reserved. Use of this source code is governed by a 4370 // for details. All rights reserved. Use of this source code is governed by a
4371 // BSD-style license that can be found in the LICENSE file. 4371 // BSD-style license that can be found in the LICENSE file.
4372 4372
4373 4373
4374 @DocsEditable 4374 @DocsEditable
4375 @DomName('SVGPathSegList') 4375 @DomName('SVGPathSegList')
4376 class PathSegList extends Object with ListMixin<PathSeg>, ImmutableListMixin<Pat hSeg> implements JavaScriptIndexingBehavior, List<PathSeg> native "SVGPathSegLis t" { 4376 class PathSegList extends Interceptor with ListMixin<PathSeg>, ImmutableListMixi n<PathSeg> implements JavaScriptIndexingBehavior, List<PathSeg> native "SVGPathS egList" {
4377 4377
4378 @DomName('SVGPathSegList.numberOfItems') 4378 @DomName('SVGPathSegList.numberOfItems')
4379 @DocsEditable 4379 @DocsEditable
4380 final int numberOfItems; 4380 final int numberOfItems;
4381 4381
4382 PathSeg operator[](int index) { 4382 PathSeg operator[](int index) {
4383 if (JS("bool", "# >>> 0 !== # || # >= #", index, 4383 if (JS("bool", "# >>> 0 !== # || # >= #", index,
4384 index, index, length)) 4384 index, index, length))
4385 throw new RangeError.range(index, 0, length); 4385 throw new RangeError.range(index, 0, length);
4386 return this.getItem(index); 4386 return this.getItem(index);
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
5157 @DocsEditable 5157 @DocsEditable
5158 final AnimatedNumber gradientOffset; 5158 final AnimatedNumber gradientOffset;
5159 } 5159 }
5160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5161 // for details. All rights reserved. Use of this source code is governed by a 5161 // for details. All rights reserved. Use of this source code is governed by a
5162 // BSD-style license that can be found in the LICENSE file. 5162 // BSD-style license that can be found in the LICENSE file.
5163 5163
5164 5164
5165 @DocsEditable 5165 @DocsEditable
5166 @DomName('SVGStringList') 5166 @DomName('SVGStringList')
5167 class StringList extends Object with ListMixin<String>, ImmutableListMixin<Strin g> implements JavaScriptIndexingBehavior, List<String> native "SVGStringList" { 5167 class StringList extends Interceptor with ListMixin<String>, ImmutableListMixin< String> implements JavaScriptIndexingBehavior, List<String> native "SVGStringLis t" {
5168 5168
5169 @DomName('SVGStringList.numberOfItems') 5169 @DomName('SVGStringList.numberOfItems')
5170 @DocsEditable 5170 @DocsEditable
5171 final int numberOfItems; 5171 final int numberOfItems;
5172 5172
5173 String operator[](int index) { 5173 String operator[](int index) {
5174 if (JS("bool", "# >>> 0 !== # || # >= #", index, 5174 if (JS("bool", "# >>> 0 !== # || # >= #", index,
5175 index, index, length)) 5175 index, index, length))
5176 throw new RangeError.range(index, 0, length); 5176 throw new RangeError.range(index, 0, length);
5177 return this.getItem(index); 5177 return this.getItem(index);
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
6219 @DocsEditable 6219 @DocsEditable
6220 void setTranslate(num tx, num ty) native; 6220 void setTranslate(num tx, num ty) native;
6221 } 6221 }
6222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6223 // for details. All rights reserved. Use of this source code is governed by a 6223 // for details. All rights reserved. Use of this source code is governed by a
6224 // BSD-style license that can be found in the LICENSE file. 6224 // BSD-style license that can be found in the LICENSE file.
6225 6225
6226 6226
6227 @DocsEditable 6227 @DocsEditable
6228 @DomName('SVGTransformList') 6228 @DomName('SVGTransformList')
6229 class TransformList extends Object with ListMixin<Transform>, ImmutableListMixin <Transform> implements List<Transform>, JavaScriptIndexingBehavior native "SVGTr ansformList" { 6229 class TransformList extends Interceptor with ListMixin<Transform>, ImmutableList Mixin<Transform> implements List<Transform>, JavaScriptIndexingBehavior native " SVGTransformList" {
6230 6230
6231 @DomName('SVGTransformList.numberOfItems') 6231 @DomName('SVGTransformList.numberOfItems')
6232 @DocsEditable 6232 @DocsEditable
6233 final int numberOfItems; 6233 final int numberOfItems;
6234 6234
6235 Transform operator[](int index) { 6235 Transform operator[](int index) {
6236 if (JS("bool", "# >>> 0 !== # || # >= #", index, 6236 if (JS("bool", "# >>> 0 !== # || # >= #", index,
6237 index, index, length)) 6237 index, index, length))
6238 throw new RangeError.range(index, 0, length); 6238 throw new RangeError.range(index, 0, length);
6239 return this.getItem(index); 6239 return this.getItem(index);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
6616 @DocsEditable 6616 @DocsEditable
6617 final Rect zoomRectScreen; 6617 final Rect zoomRectScreen;
6618 } 6618 }
6619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6620 // for details. All rights reserved. Use of this source code is governed by a 6620 // for details. All rights reserved. Use of this source code is governed by a
6621 // BSD-style license that can be found in the LICENSE file. 6621 // BSD-style license that can be found in the LICENSE file.
6622 6622
6623 6623
6624 @DocsEditable 6624 @DocsEditable
6625 @DomName('SVGElementInstanceList') 6625 @DomName('SVGElementInstanceList')
6626 class _ElementInstanceList extends Object with ListMixin<ElementInstance>, Immut ableListMixin<ElementInstance> implements JavaScriptIndexingBehavior, List<Eleme ntInstance> native "SVGElementInstanceList" { 6626 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>, ImmutableListMixin<ElementInstance> implements JavaScriptIndexingBehavior, List< ElementInstance> native "SVGElementInstanceList" {
6627 6627
6628 @DomName('SVGElementInstanceList.length') 6628 @DomName('SVGElementInstanceList.length')
6629 @DocsEditable 6629 @DocsEditable
6630 int get length => JS("int", "#.length", this); 6630 int get length => JS("int", "#.length", this);
6631 6631
6632 ElementInstance operator[](int index) { 6632 ElementInstance operator[](int index) {
6633 if (JS("bool", "# >>> 0 !== # || # >= #", index, 6633 if (JS("bool", "# >>> 0 !== # || # >= #", index,
6634 index, index, length)) 6634 index, index, length))
6635 throw new RangeError.range(index, 0, length); 6635 throw new RangeError.range(index, 0, length);
6636 return this.item(index); 6636 return this.item(index);
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
6954 6954
6955 6955
6956 @DocsEditable 6956 @DocsEditable
6957 @DomName('SVGVKernElement') 6957 @DomName('SVGVKernElement')
6958 abstract class _SVGVKernElement extends SvgElement native "SVGVKernElement" { 6958 abstract class _SVGVKernElement extends SvgElement native "SVGVKernElement" {
6959 6959
6960 @DomName('SVGVKernElement.SVGVKernElement') 6960 @DomName('SVGVKernElement.SVGVKernElement')
6961 @DocsEditable 6961 @DocsEditable
6962 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 6962 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
6963 } 6963 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/web_audio/dart2js/web_audio_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698