| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 void moveTo(num x, num y) native; | 1204 void moveTo(num x, num y) native; |
| 1205 | 1205 |
| 1206 @DomName('CanvasRenderingContext2D.putImageData') | 1206 @DomName('CanvasRenderingContext2D.putImageData') |
| 1207 @DocsEditable | 1207 @DocsEditable |
| 1208 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { | 1208 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { |
| 1209 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { | 1209 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { |
| 1210 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 1210 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| 1211 _putImageData_1(imagedata_1, dx, dy); | 1211 _putImageData_1(imagedata_1, dx, dy); |
| 1212 return; | 1212 return; |
| 1213 } | 1213 } |
| 1214 if (dirtyX != null && dirtyY != null && dirtyWidth != null && dirtyHeight !=
null) { | 1214 if (?dirtyX && ?dirtyY && ?dirtyWidth && ?dirtyHeight) { |
| 1215 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 1215 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| 1216 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeig
ht); | 1216 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeig
ht); |
| 1217 return; | 1217 return; |
| 1218 } | 1218 } |
| 1219 throw new ArgumentError("Incorrect number or type of arguments"); | 1219 throw new ArgumentError("Incorrect number or type of arguments"); |
| 1220 } | 1220 } |
| 1221 @JSName('putImageData') | 1221 @JSName('putImageData') |
| 1222 @DomName('CanvasRenderingContext2D.putImageData') | 1222 @DomName('CanvasRenderingContext2D.putImageData') |
| 1223 @DocsEditable | 1223 @DocsEditable |
| 1224 void _putImageData_1(imagedata, dx, dy) native; | 1224 void _putImageData_1(imagedata, dx, dy) native; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 @DocsEditable | 1301 @DocsEditable |
| 1302 @SupportedBrowser(SupportedBrowser.CHROME) | 1302 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1303 @SupportedBrowser(SupportedBrowser.SAFARI) | 1303 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1304 @Experimental | 1304 @Experimental |
| 1305 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt
yY, num dirtyWidth, num dirtyHeight]) { | 1305 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt
yY, num dirtyWidth, num dirtyHeight]) { |
| 1306 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { | 1306 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { |
| 1307 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 1307 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| 1308 _putImageDataHD_1(imagedata_1, dx, dy); | 1308 _putImageDataHD_1(imagedata_1, dx, dy); |
| 1309 return; | 1309 return; |
| 1310 } | 1310 } |
| 1311 if (dirtyX != null && dirtyY != null && dirtyWidth != null && dirtyHeight !=
null) { | 1311 if (?dirtyX && ?dirtyY && ?dirtyWidth && ?dirtyHeight) { |
| 1312 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 1312 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| 1313 _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHe
ight); | 1313 _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHe
ight); |
| 1314 return; | 1314 return; |
| 1315 } | 1315 } |
| 1316 throw new ArgumentError("Incorrect number or type of arguments"); | 1316 throw new ArgumentError("Incorrect number or type of arguments"); |
| 1317 } | 1317 } |
| 1318 @JSName('webkitPutImageDataHD') | 1318 @JSName('webkitPutImageDataHD') |
| 1319 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') | 1319 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') |
| 1320 @DocsEditable | 1320 @DocsEditable |
| 1321 @SupportedBrowser(SupportedBrowser.CHROME) | 1321 @SupportedBrowser(SupportedBrowser.CHROME) |
| (...skipping 27034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28356 _position = nextPosition; | 28356 _position = nextPosition; |
| 28357 return true; | 28357 return true; |
| 28358 } | 28358 } |
| 28359 _current = null; | 28359 _current = null; |
| 28360 _position = _array.length; | 28360 _position = _array.length; |
| 28361 return false; | 28361 return false; |
| 28362 } | 28362 } |
| 28363 | 28363 |
| 28364 T get current => _current; | 28364 T get current => _current; |
| 28365 } | 28365 } |
| OLD | NEW |