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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11364186: Dartifying SVG library class names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing to latest, updating for style guide. Created 8 years, 1 month 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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 8944 matching lines...) Expand 10 before | Expand all | Expand 10 after
8955 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 8955 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
8956 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); 8956 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length);
8957 8957
8958 static const int BYTES_PER_ELEMENT = 4; 8958 static const int BYTES_PER_ELEMENT = 4;
8959 8959
8960 /** @domName Float32Array.length */ 8960 /** @domName Float32Array.length */
8961 final int length; 8961 final int length;
8962 8962
8963 num operator[](int index) => JS("num", "#[#]", this, index); 8963 num operator[](int index) => JS("num", "#[#]", this, index);
8964 8964
8965 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } 8965 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
8966 // -- start List<num> mixins.
8967 // num is the element type. 8966 // num is the element type.
8968 8967
8969 // From Iterable<num>: 8968 // From Iterable<num>:
8970 8969
8971 Iterator<num> iterator() { 8970 Iterator<num> iterator() {
8972 // Note: NodeLists are not fixed size. And most probably length shouldn't 8971 // Note: NodeLists are not fixed size. And most probably length shouldn't
8973 // be cached in both iterator _and_ forEach method. For now caching it 8972 // be cached in both iterator _and_ forEach method. For now caching it
8974 // for consistency. 8973 // for consistency.
8975 return new FixedSizeListIterator<num>(this); 8974 return new FixedSizeListIterator<num>(this);
8976 } 8975 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
9066 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 9065 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
9067 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); 9066 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length);
9068 9067
9069 static const int BYTES_PER_ELEMENT = 8; 9068 static const int BYTES_PER_ELEMENT = 8;
9070 9069
9071 /** @domName Float64Array.length */ 9070 /** @domName Float64Array.length */
9072 final int length; 9071 final int length;
9073 9072
9074 num operator[](int index) => JS("num", "#[#]", this, index); 9073 num operator[](int index) => JS("num", "#[#]", this, index);
9075 9074
9076 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } 9075 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
9077 // -- start List<num> mixins.
9078 // num is the element type. 9076 // num is the element type.
9079 9077
9080 // From Iterable<num>: 9078 // From Iterable<num>:
9081 9079
9082 Iterator<num> iterator() { 9080 Iterator<num> iterator() {
9083 // Note: NodeLists are not fixed size. And most probably length shouldn't 9081 // Note: NodeLists are not fixed size. And most probably length shouldn't
9084 // be cached in both iterator _and_ forEach method. For now caching it 9082 // be cached in both iterator _and_ forEach method. For now caching it
9085 // for consistency. 9083 // for consistency.
9086 return new FixedSizeListIterator<num>(this); 9084 return new FixedSizeListIterator<num>(this);
9087 } 9085 }
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
11187 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 11185 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
11188 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength); 11186 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength);
11189 11187
11190 static const int BYTES_PER_ELEMENT = 2; 11188 static const int BYTES_PER_ELEMENT = 2;
11191 11189
11192 /** @domName Int16Array.length */ 11190 /** @domName Int16Array.length */
11193 final int length; 11191 final int length;
11194 11192
11195 int operator[](int index) => JS("int", "#[#]", this, index); 11193 int operator[](int index) => JS("int", "#[#]", this, index);
11196 11194
11197 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } 11195 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11198 // -- start List<int> mixins.
11199 // int is the element type. 11196 // int is the element type.
11200 11197
11201 // From Iterable<int>: 11198 // From Iterable<int>:
11202 11199
11203 Iterator<int> iterator() { 11200 Iterator<int> iterator() {
11204 // Note: NodeLists are not fixed size. And most probably length shouldn't 11201 // Note: NodeLists are not fixed size. And most probably length shouldn't
11205 // be cached in both iterator _and_ forEach method. For now caching it 11202 // be cached in both iterator _and_ forEach method. For now caching it
11206 // for consistency. 11203 // for consistency.
11207 return new FixedSizeListIterator<int>(this); 11204 return new FixedSizeListIterator<int>(this);
11208 } 11205 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
11298 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 11295 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
11299 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength); 11296 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength);
11300 11297
11301 static const int BYTES_PER_ELEMENT = 4; 11298 static const int BYTES_PER_ELEMENT = 4;
11302 11299
11303 /** @domName Int32Array.length */ 11300 /** @domName Int32Array.length */
11304 final int length; 11301 final int length;
11305 11302
11306 int operator[](int index) => JS("int", "#[#]", this, index); 11303 int operator[](int index) => JS("int", "#[#]", this, index);
11307 11304
11308 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } 11305 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11309 // -- start List<int> mixins.
11310 // int is the element type. 11306 // int is the element type.
11311 11307
11312 // From Iterable<int>: 11308 // From Iterable<int>:
11313 11309
11314 Iterator<int> iterator() { 11310 Iterator<int> iterator() {
11315 // Note: NodeLists are not fixed size. And most probably length shouldn't 11311 // Note: NodeLists are not fixed size. And most probably length shouldn't
11316 // be cached in both iterator _and_ forEach method. For now caching it 11312 // be cached in both iterator _and_ forEach method. For now caching it
11317 // for consistency. 11313 // for consistency.
11318 return new FixedSizeListIterator<int>(this); 11314 return new FixedSizeListIterator<int>(this);
11319 } 11315 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
11409 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => 11405 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
11410 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth); 11406 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth);
11411 11407
11412 static const int BYTES_PER_ELEMENT = 1; 11408 static const int BYTES_PER_ELEMENT = 1;
11413 11409
11414 /** @domName Int8Array.length */ 11410 /** @domName Int8Array.length */
11415 final int length; 11411 final int length;
11416 11412
11417 int operator[](int index) => JS("int", "#[#]", this, index); 11413 int operator[](int index) => JS("int", "#[#]", this, index);
11418 11414
11419 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } 11415 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11420 // -- start List<int> mixins.
11421 // int is the element type. 11416 // int is the element type.
11422 11417
11423 // From Iterable<int>: 11418 // From Iterable<int>:
11424 11419
11425 Iterator<int> iterator() { 11420 Iterator<int> iterator() {
11426 // Note: NodeLists are not fixed size. And most probably length shouldn't 11421 // Note: NodeLists are not fixed size. And most probably length shouldn't
11427 // be cached in both iterator _and_ forEach method. For now caching it 11422 // be cached in both iterator _and_ forEach method. For now caching it
11428 // for consistency. 11423 // for consistency.
11429 return new FixedSizeListIterator<int>(this); 11424 return new FixedSizeListIterator<int>(this);
11430 } 11425 }
(...skipping 6558 matching lines...) Expand 10 before | Expand all | Expand 10 after
17989 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 17984 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
17990 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length); 17985 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
17991 17986
17992 static const int BYTES_PER_ELEMENT = 2; 17987 static const int BYTES_PER_ELEMENT = 2;
17993 17988
17994 /** @domName Uint16Array.length */ 17989 /** @domName Uint16Array.length */
17995 final int length; 17990 final int length;
17996 17991
17997 int operator[](int index) => JS("int", "#[#]", this, index); 17992 int operator[](int index) => JS("int", "#[#]", this, index);
17998 17993
17999 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } 17994 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18000 // -- start List<int> mixins.
18001 // int is the element type. 17995 // int is the element type.
18002 17996
18003 // From Iterable<int>: 17997 // From Iterable<int>:
18004 17998
18005 Iterator<int> iterator() { 17999 Iterator<int> iterator() {
18006 // Note: NodeLists are not fixed size. And most probably length shouldn't 18000 // Note: NodeLists are not fixed size. And most probably length shouldn't
18007 // be cached in both iterator _and_ forEach method. For now caching it 18001 // be cached in both iterator _and_ forEach method. For now caching it
18008 // for consistency. 18002 // for consistency.
18009 return new FixedSizeListIterator<int>(this); 18003 return new FixedSizeListIterator<int>(this);
18010 } 18004 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
18100 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 18094 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
18101 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length); 18095 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
18102 18096
18103 static const int BYTES_PER_ELEMENT = 4; 18097 static const int BYTES_PER_ELEMENT = 4;
18104 18098
18105 /** @domName Uint32Array.length */ 18099 /** @domName Uint32Array.length */
18106 final int length; 18100 final int length;
18107 18101
18108 int operator[](int index) => JS("int", "#[#]", this, index); 18102 int operator[](int index) => JS("int", "#[#]", this, index);
18109 18103
18110 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } 18104 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18111 // -- start List<int> mixins.
18112 // int is the element type. 18105 // int is the element type.
18113 18106
18114 // From Iterable<int>: 18107 // From Iterable<int>:
18115 18108
18116 Iterator<int> iterator() { 18109 Iterator<int> iterator() {
18117 // Note: NodeLists are not fixed size. And most probably length shouldn't 18110 // Note: NodeLists are not fixed size. And most probably length shouldn't
18118 // be cached in both iterator _and_ forEach method. For now caching it 18111 // be cached in both iterator _and_ forEach method. For now caching it
18119 // for consistency. 18112 // for consistency.
18120 return new FixedSizeListIterator<int>(this); 18113 return new FixedSizeListIterator<int>(this);
18121 } 18114 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
18211 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 18204 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
18212 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength); 18205 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength);
18213 18206
18214 static const int BYTES_PER_ELEMENT = 1; 18207 static const int BYTES_PER_ELEMENT = 1;
18215 18208
18216 /** @domName Uint8Array.length */ 18209 /** @domName Uint8Array.length */
18217 final int length; 18210 final int length;
18218 18211
18219 int operator[](int index) => JS("int", "#[#]", this, index); 18212 int operator[](int index) => JS("int", "#[#]", this, index);
18220 18213
18221 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } 18214 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18222 // -- start List<int> mixins.
18223 // int is the element type. 18215 // int is the element type.
18224 18216
18225 // From Iterable<int>: 18217 // From Iterable<int>:
18226 18218
18227 Iterator<int> iterator() { 18219 Iterator<int> iterator() {
18228 // Note: NodeLists are not fixed size. And most probably length shouldn't 18220 // Note: NodeLists are not fixed size. And most probably length shouldn't
18229 // be cached in both iterator _and_ forEach method. For now caching it 18221 // be cached in both iterator _and_ forEach method. For now caching it
18230 // for consistency. 18222 // for consistency.
18231 return new FixedSizeListIterator<int>(this); 18223 return new FixedSizeListIterator<int>(this);
18232 } 18224 }
(...skipping 6766 matching lines...) Expand 10 before | Expand all | Expand 10 after
24999 if (length < 0) throw new ArgumentError('length'); 24991 if (length < 0) throw new ArgumentError('length');
25000 if (start < 0) throw new RangeError.value(start); 24992 if (start < 0) throw new RangeError.value(start);
25001 int end = start + length; 24993 int end = start + length;
25002 if (end > a.length) throw new RangeError.value(end); 24994 if (end > a.length) throw new RangeError.value(end);
25003 for (int i = start; i < end; i++) { 24995 for (int i = start; i < end; i++) {
25004 accumulator.add(a[i]); 24996 accumulator.add(a[i]);
25005 } 24997 }
25006 return accumulator; 24998 return accumulator;
25007 } 24999 }
25008 } 25000 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698