| 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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 void moveTo(num x, num y) native; | 1196 void moveTo(num x, num y) native; |
| 1197 | 1197 |
| 1198 @DomName('CanvasRenderingContext2D.putImageData') | 1198 @DomName('CanvasRenderingContext2D.putImageData') |
| 1199 @DocsEditable | 1199 @DocsEditable |
| 1200 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { | 1200 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { |
| 1201 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { | 1201 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { |
| 1202 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 1202 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| 1203 _putImageData_1(imagedata_1, dx, dy); | 1203 _putImageData_1(imagedata_1, dx, dy); |
| 1204 return; | 1204 return; |
| 1205 } | 1205 } |
| 1206 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 1206 if (dirtyX != null && dirtyY != null && dirtyWidth != null && dirtyHeight !=
null) { |
| 1207 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight
); | 1207 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| 1208 return; | 1208 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeig
ht); |
| 1209 return; |
| 1210 } |
| 1209 throw new ArgumentError("Incorrect number or type of arguments"); | 1211 throw new ArgumentError("Incorrect number or type of arguments"); |
| 1210 } | 1212 } |
| 1211 @JSName('putImageData') | 1213 @JSName('putImageData') |
| 1212 @DomName('CanvasRenderingContext2D.putImageData') | 1214 @DomName('CanvasRenderingContext2D.putImageData') |
| 1213 @DocsEditable | 1215 @DocsEditable |
| 1214 void _putImageData_1(imagedata, dx, dy) native; | 1216 void _putImageData_1(imagedata, dx, dy) native; |
| 1215 @JSName('putImageData') | 1217 @JSName('putImageData') |
| 1216 @DomName('CanvasRenderingContext2D.putImageData') | 1218 @DomName('CanvasRenderingContext2D.putImageData') |
| 1217 @DocsEditable | 1219 @DocsEditable |
| 1218 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native; | 1220 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 @DocsEditable | 1293 @DocsEditable |
| 1292 @SupportedBrowser(SupportedBrowser.CHROME) | 1294 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1293 @SupportedBrowser(SupportedBrowser.SAFARI) | 1295 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1294 @Experimental | 1296 @Experimental |
| 1295 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt
yY, num dirtyWidth, num dirtyHeight]) { | 1297 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt
yY, num dirtyWidth, num dirtyHeight]) { |
| 1296 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { | 1298 if (!?dirtyX && !?dirtyY && !?dirtyWidth && !?dirtyHeight) { |
| 1297 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 1299 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| 1298 _putImageDataHD_1(imagedata_1, dx, dy); | 1300 _putImageDataHD_1(imagedata_1, dx, dy); |
| 1299 return; | 1301 return; |
| 1300 } | 1302 } |
| 1301 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 1303 if (dirtyX != null && dirtyY != null && dirtyWidth != null && dirtyHeight !=
null) { |
| 1302 _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeig
ht); | 1304 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| 1303 return; | 1305 _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHe
ight); |
| 1306 return; |
| 1307 } |
| 1304 throw new ArgumentError("Incorrect number or type of arguments"); | 1308 throw new ArgumentError("Incorrect number or type of arguments"); |
| 1305 } | 1309 } |
| 1306 @JSName('webkitPutImageDataHD') | 1310 @JSName('webkitPutImageDataHD') |
| 1307 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') | 1311 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') |
| 1308 @DocsEditable | 1312 @DocsEditable |
| 1309 @SupportedBrowser(SupportedBrowser.CHROME) | 1313 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1310 @SupportedBrowser(SupportedBrowser.SAFARI) | 1314 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1311 @Experimental | 1315 @Experimental |
| 1312 void _putImageDataHD_1(imagedata, dx, dy) native; | 1316 void _putImageDataHD_1(imagedata, dx, dy) native; |
| 1313 @JSName('webkitPutImageDataHD') | 1317 @JSName('webkitPutImageDataHD') |
| (...skipping 26655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27969 _position = nextPosition; | 27973 _position = nextPosition; |
| 27970 return true; | 27974 return true; |
| 27971 } | 27975 } |
| 27972 _current = null; | 27976 _current = null; |
| 27973 _position = _array.length; | 27977 _position = _array.length; |
| 27974 return false; | 27978 return false; |
| 27975 } | 27979 } |
| 27976 | 27980 |
| 27977 T get current => _current; | 27981 T get current => _current; |
| 27978 } | 27982 } |
| OLD | NEW |