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

Side by Side Diff: client/dom/frog/dom_frog.dart

Issue 9453030: Fix for issue 1814 for dart:dom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo Created 8 years, 10 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
« no previous file with comments | « no previous file | client/dom/generated/src/frog/Float32Array.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('dom'); 1 #library('dom');
2 2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
(...skipping 2302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 2313 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
2314 } 2314 }
2315 void insertRange(int start, int length, [num initialValue]) { 2315 void insertRange(int start, int length, [num initialValue]) {
2316 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 2316 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
2317 } 2317 }
2318 List<num> getRange(int start, int length) => 2318 List<num> getRange(int start, int length) =>
2319 _Lists.getRange(this, start, length, <num>[]); 2319 _Lists.getRange(this, start, length, <num>[]);
2320 2320
2321 // -- end List<num> mixins. 2321 // -- end List<num> mixins.
2322 2322
2323 void setElements(Object array, [int offset = null]) native; 2323 void setElements(Object array, [int offset = null]) native '''
2324 if (offset == null) return this.set(array);
2325 return this.set(array, offset);''';
2324 2326
2325 _Float32ArrayJs subarray(int start, [int end = null]) native; 2327 _Float32ArrayJs subarray(int start, [int end = null]) native;
2326 } 2328 }
2327 2329
2328 class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n um> native "*Float64Array" { 2330 class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n um> native "*Float64Array" {
2329 2331
2330 factory Float64Array(int length) => _construct_Float64Array(length); 2332 factory Float64Array(int length) => _construct_Float64Array(length);
2331 2333
2332 factory Float64Array.fromList(List<num> list) => _construct_Float64Array(list) ; 2334 factory Float64Array.fromList(List<num> list) => _construct_Float64Array(list) ;
2333 2335
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 2405 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
2404 } 2406 }
2405 void insertRange(int start, int length, [num initialValue]) { 2407 void insertRange(int start, int length, [num initialValue]) {
2406 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 2408 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
2407 } 2409 }
2408 List<num> getRange(int start, int length) => 2410 List<num> getRange(int start, int length) =>
2409 _Lists.getRange(this, start, length, <num>[]); 2411 _Lists.getRange(this, start, length, <num>[]);
2410 2412
2411 // -- end List<num> mixins. 2413 // -- end List<num> mixins.
2412 2414
2413 void setElements(Object array, [int offset = null]) native; 2415 void setElements(Object array, [int offset = null]) native '''
2416 if (offset == null) return this.set(array);
2417 return this.set(array, offset);''';
2414 2418
2415 _Float64ArrayJs subarray(int start, [int end = null]) native; 2419 _Float64ArrayJs subarray(int start, [int end = null]) native;
2416 } 2420 }
2417 2421
2418 class _GeolocationJs extends _DOMTypeJs implements Geolocation native "*Geolocat ion" { 2422 class _GeolocationJs extends _DOMTypeJs implements Geolocation native "*Geolocat ion" {
2419 2423
2420 void clearWatch(int watchId) native; 2424 void clearWatch(int watchId) native;
2421 2425
2422 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback = null]) native; 2426 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback = null]) native;
2423 2427
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after
3993 static final int PREV_NO_DUPLICATE = 3; 3997 static final int PREV_NO_DUPLICATE = 3;
3994 3998
3995 final int direction; 3999 final int direction;
3996 4000
3997 final _IDBKeyJs key; 4001 final _IDBKeyJs key;
3998 4002
3999 final _IDBKeyJs primaryKey; 4003 final _IDBKeyJs primaryKey;
4000 4004
4001 final _IDBAnyJs source; 4005 final _IDBAnyJs source;
4002 4006
4003 void continueFunction([_IDBKeyJs key = null]) native; 4007 void continueFunction([_IDBKeyJs key = null]) native '''
4008 if (key == null) return this['continue']();
4009 return this['continue'](key);
4010 ''';
4004 4011
4005 _IDBRequestJs delete() native; 4012 _IDBRequestJs delete() native;
4006 4013
4007 _IDBRequestJs update(Dynamic value) native; 4014 _IDBRequestJs update(Dynamic value) native;
4008 } 4015 }
4009 4016
4010 class _IDBCursorWithValueJs extends _IDBCursorJs implements IDBCursorWithValue n ative "*IDBCursorWithValue" { 4017 class _IDBCursorWithValueJs extends _IDBCursorJs implements IDBCursorWithValue n ative "*IDBCursorWithValue" {
4011 4018
4012 final _IDBAnyJs value; 4019 final _IDBAnyJs value;
4013 } 4020 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
4103 final bool multiEntry; 4110 final bool multiEntry;
4104 4111
4105 final String name; 4112 final String name;
4106 4113
4107 final _IDBObjectStoreJs objectStore; 4114 final _IDBObjectStoreJs objectStore;
4108 4115
4109 final bool unique; 4116 final bool unique;
4110 4117
4111 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; 4118 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native;
4112 4119
4113 _IDBRequestJs getObject(_IDBKeyJs key) native; 4120 _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);''';
4114 4121
4115 _IDBRequestJs getKey(_IDBKeyJs key) native; 4122 _IDBRequestJs getKey(_IDBKeyJs key) native;
4116 4123
4117 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null]) native; 4124 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null]) native;
4118 4125
4119 _IDBRequestJs openKeyCursor([_IDBKeyRangeJs range = null, int direction = null ]) native; 4126 _IDBRequestJs openKeyCursor([_IDBKeyRangeJs range = null, int direction = null ]) native;
4120 } 4127 }
4121 4128
4122 class _IDBKeyJs extends _DOMTypeJs implements IDBKey native "*IDBKey" { 4129 class _IDBKeyJs extends _DOMTypeJs implements IDBKey native "*IDBKey" {
4123 } 4130 }
(...skipping 30 matching lines...) Expand all
4154 _IDBRequestJs clear() native; 4161 _IDBRequestJs clear() native;
4155 4162
4156 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; 4163 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native;
4157 4164
4158 _IDBIndexJs createIndex(String name, String keyPath) native; 4165 _IDBIndexJs createIndex(String name, String keyPath) native;
4159 4166
4160 _IDBRequestJs delete(_IDBKeyJs key) native; 4167 _IDBRequestJs delete(_IDBKeyJs key) native;
4161 4168
4162 void deleteIndex(String name) native; 4169 void deleteIndex(String name) native;
4163 4170
4164 _IDBRequestJs getObject(_IDBKeyJs key) native; 4171 _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);''';
4165 4172
4166 _IDBIndexJs index(String name) native; 4173 _IDBIndexJs index(String name) native;
4167 4174
4168 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null]) native; 4175 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null]) native;
4169 4176
4170 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native; 4177 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native;
4171 } 4178 }
4172 4179
4173 class _IDBRequestJs extends _DOMTypeJs implements IDBRequest native "*IDBRequest " { 4180 class _IDBRequestJs extends _DOMTypeJs implements IDBRequest native "*IDBRequest " {
4174 4181
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
4325 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4332 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4326 } 4333 }
4327 void insertRange(int start, int length, [int initialValue]) { 4334 void insertRange(int start, int length, [int initialValue]) {
4328 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4335 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4329 } 4336 }
4330 List<int> getRange(int start, int length) => 4337 List<int> getRange(int start, int length) =>
4331 _Lists.getRange(this, start, length, <int>[]); 4338 _Lists.getRange(this, start, length, <int>[]);
4332 4339
4333 // -- end List<int> mixins. 4340 // -- end List<int> mixins.
4334 4341
4335 void setElements(Object array, [int offset = null]) native; 4342 void setElements(Object array, [int offset = null]) native '''
4343 if (offset == null) return this.set(array);
4344 return this.set(array, offset);''';
4336 4345
4337 _Int16ArrayJs subarray(int start, [int end = null]) native; 4346 _Int16ArrayJs subarray(int start, [int end = null]) native;
4338 } 4347 }
4339 4348
4340 class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int> native "*Int32Array" { 4349 class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int> native "*Int32Array" {
4341 4350
4342 factory Int32Array(int length) => _construct_Int32Array(length); 4351 factory Int32Array(int length) => _construct_Int32Array(length);
4343 4352
4344 factory Int32Array.fromList(List<int> list) => _construct_Int32Array(list); 4353 factory Int32Array.fromList(List<int> list) => _construct_Int32Array(list);
4345 4354
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
4415 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4424 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4416 } 4425 }
4417 void insertRange(int start, int length, [int initialValue]) { 4426 void insertRange(int start, int length, [int initialValue]) {
4418 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4427 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4419 } 4428 }
4420 List<int> getRange(int start, int length) => 4429 List<int> getRange(int start, int length) =>
4421 _Lists.getRange(this, start, length, <int>[]); 4430 _Lists.getRange(this, start, length, <int>[]);
4422 4431
4423 // -- end List<int> mixins. 4432 // -- end List<int> mixins.
4424 4433
4425 void setElements(Object array, [int offset = null]) native; 4434 void setElements(Object array, [int offset = null]) native '''
4435 if (offset == null) return this.set(array);
4436 return this.set(array, offset);''';
4426 4437
4427 _Int32ArrayJs subarray(int start, [int end = null]) native; 4438 _Int32ArrayJs subarray(int start, [int end = null]) native;
4428 } 4439 }
4429 4440
4430 class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na tive "*Int8Array" { 4441 class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na tive "*Int8Array" {
4431 4442
4432 factory Int8Array(int length) => _construct_Int8Array(length); 4443 factory Int8Array(int length) => _construct_Int8Array(length);
4433 4444
4434 factory Int8Array.fromList(List<int> list) => _construct_Int8Array(list); 4445 factory Int8Array.fromList(List<int> list) => _construct_Int8Array(list);
4435 4446
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
4505 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4516 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4506 } 4517 }
4507 void insertRange(int start, int length, [int initialValue]) { 4518 void insertRange(int start, int length, [int initialValue]) {
4508 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4519 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4509 } 4520 }
4510 List<int> getRange(int start, int length) => 4521 List<int> getRange(int start, int length) =>
4511 _Lists.getRange(this, start, length, <int>[]); 4522 _Lists.getRange(this, start, length, <int>[]);
4512 4523
4513 // -- end List<int> mixins. 4524 // -- end List<int> mixins.
4514 4525
4515 void setElements(Object array, [int offset = null]) native; 4526 void setElements(Object array, [int offset = null]) native '''
4527 if (offset == null) return this.set(array);
4528 return this.set(array, offset);''';
4516 4529
4517 _Int8ArrayJs subarray(int start, [int end = null]) native; 4530 _Int8ArrayJs subarray(int start, [int end = null]) native;
4518 } 4531 }
4519 4532
4520 class _JavaScriptAudioNodeJs extends _AudioNodeJs implements JavaScriptAudioNode native "*JavaScriptAudioNode" { 4533 class _JavaScriptAudioNodeJs extends _AudioNodeJs implements JavaScriptAudioNode native "*JavaScriptAudioNode" {
4521 4534
4522 final int bufferSize; 4535 final int bufferSize;
4523 4536
4524 EventListener onaudioprocess; 4537 EventListener onaudioprocess;
4525 } 4538 }
(...skipping 5192 matching lines...) Expand 10 before | Expand all | Expand 10 after
9718 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 9731 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
9719 } 9732 }
9720 void insertRange(int start, int length, [int initialValue]) { 9733 void insertRange(int start, int length, [int initialValue]) {
9721 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 9734 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
9722 } 9735 }
9723 List<int> getRange(int start, int length) => 9736 List<int> getRange(int start, int length) =>
9724 _Lists.getRange(this, start, length, <int>[]); 9737 _Lists.getRange(this, start, length, <int>[]);
9725 9738
9726 // -- end List<int> mixins. 9739 // -- end List<int> mixins.
9727 9740
9728 void setElements(Object array, [int offset = null]) native; 9741 void setElements(Object array, [int offset = null]) native '''
9742 if (offset == null) return this.set(array);
9743 return this.set(array, offset);''';
9729 9744
9730 _Uint16ArrayJs subarray(int start, [int end = null]) native; 9745 _Uint16ArrayJs subarray(int start, [int end = null]) native;
9731 } 9746 }
9732 9747
9733 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int > native "*Uint32Array" { 9748 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int > native "*Uint32Array" {
9734 9749
9735 factory Uint32Array(int length) => _construct_Uint32Array(length); 9750 factory Uint32Array(int length) => _construct_Uint32Array(length);
9736 9751
9737 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list); 9752 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list);
9738 9753
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
9808 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 9823 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
9809 } 9824 }
9810 void insertRange(int start, int length, [int initialValue]) { 9825 void insertRange(int start, int length, [int initialValue]) {
9811 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 9826 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
9812 } 9827 }
9813 List<int> getRange(int start, int length) => 9828 List<int> getRange(int start, int length) =>
9814 _Lists.getRange(this, start, length, <int>[]); 9829 _Lists.getRange(this, start, length, <int>[]);
9815 9830
9816 // -- end List<int> mixins. 9831 // -- end List<int> mixins.
9817 9832
9818 void setElements(Object array, [int offset = null]) native; 9833 void setElements(Object array, [int offset = null]) native '''
9834 if (offset == null) return this.set(array);
9835 return this.set(array, offset);''';
9819 9836
9820 _Uint32ArrayJs subarray(int start, [int end = null]) native; 9837 _Uint32ArrayJs subarray(int start, [int end = null]) native;
9821 } 9838 }
9822 9839
9823 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int> native "*Uint8Array" { 9840 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int> native "*Uint8Array" {
9824 9841
9825 factory Uint8Array(int length) => _construct_Uint8Array(length); 9842 factory Uint8Array(int length) => _construct_Uint8Array(length);
9826 9843
9827 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list); 9844 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list);
9828 9845
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
9898 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 9915 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
9899 } 9916 }
9900 void insertRange(int start, int length, [int initialValue]) { 9917 void insertRange(int start, int length, [int initialValue]) {
9901 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 9918 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
9902 } 9919 }
9903 List<int> getRange(int start, int length) => 9920 List<int> getRange(int start, int length) =>
9904 _Lists.getRange(this, start, length, <int>[]); 9921 _Lists.getRange(this, start, length, <int>[]);
9905 9922
9906 // -- end List<int> mixins. 9923 // -- end List<int> mixins.
9907 9924
9908 void setElements(Object array, [int offset = null]) native; 9925 void setElements(Object array, [int offset = null]) native '''
9926 if (offset == null) return this.set(array);
9927 return this.set(array, offset);''';
9909 9928
9910 _Uint8ArrayJs subarray(int start, [int end = null]) native; 9929 _Uint8ArrayJs subarray(int start, [int end = null]) native;
9911 } 9930 }
9912 9931
9913 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L ist<int> native "*Uint8ClampedArray" { 9932 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L ist<int> native "*Uint8ClampedArray" {
9914 9933
9915 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length) ; 9934 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length) ;
9916 9935
9917 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA rray(list); 9936 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA rray(list);
9918 9937
(...skipping 13937 matching lines...) Expand 10 before | Expand all | Expand 10 after
23856 if (length < 0) throw new IllegalArgumentException('length'); 23875 if (length < 0) throw new IllegalArgumentException('length');
23857 if (start < 0) throw new IndexOutOfRangeException(start); 23876 if (start < 0) throw new IndexOutOfRangeException(start);
23858 int end = start + length; 23877 int end = start + length;
23859 if (end > a.length) throw new IndexOutOfRangeException(end); 23878 if (end > a.length) throw new IndexOutOfRangeException(end);
23860 for (int i = start; i < end; i++) { 23879 for (int i = start; i < end; i++) {
23861 accumulator.add(a[i]); 23880 accumulator.add(a[i]);
23862 } 23881 }
23863 return accumulator; 23882 return accumulator;
23864 } 23883 }
23865 } 23884 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/generated/src/frog/Float32Array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698