OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:collection'; | 3 import 'dart:collection'; |
4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 import 'dart:json'; | 7 import 'dart:json'; |
8 import 'dart:svg' as svg; | 8 import 'dart:svg' as svg; |
9 import 'dart:web_audio' as web_audio; | 9 import 'dart:web_audio' as web_audio; |
10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 void clearShadow() native; | 1002 void clearShadow() native; |
1003 | 1003 |
1004 /// @domName CanvasRenderingContext2D.clip; @docsEditable true | 1004 /// @domName CanvasRenderingContext2D.clip; @docsEditable true |
1005 void clip() native; | 1005 void clip() native; |
1006 | 1006 |
1007 /// @domName CanvasRenderingContext2D.closePath; @docsEditable true | 1007 /// @domName CanvasRenderingContext2D.closePath; @docsEditable true |
1008 void closePath() native; | 1008 void closePath() native; |
1009 | 1009 |
1010 /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true | 1010 /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true |
1011 ImageData createImageData(imagedata_OR_sw, [num sh]) { | 1011 ImageData createImageData(imagedata_OR_sw, [num sh]) { |
1012 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw ==
null)) && | 1012 if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && |
1013 !?sh) { | 1013 !?sh) { |
1014 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); | 1014 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); |
1015 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); | 1015 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); |
1016 } | 1016 } |
1017 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null)
)) { | 1017 if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) { |
1018 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); | 1018 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); |
1019 } | 1019 } |
1020 throw new ArgumentError("Incorrect number or type of arguments"); | 1020 throw new ArgumentError("Incorrect number or type of arguments"); |
1021 } | 1021 } |
1022 @JSName('createImageData') | 1022 @JSName('createImageData') |
1023 @Creates('ImageData|=Object') | 1023 @Creates('ImageData|=Object') |
1024 _createImageData_1(imagedata) native; | 1024 _createImageData_1(imagedata) native; |
1025 @JSName('createImageData') | 1025 @JSName('createImageData') |
1026 @Creates('ImageData|=Object') | 1026 @Creates('ImageData|=Object') |
1027 _createImageData_2(num sw, sh) native; | 1027 _createImageData_2(num sw, sh) native; |
(...skipping 18550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19578 void stencilMaskSeparate(int face, int mask) native; | 19578 void stencilMaskSeparate(int face, int mask) native; |
19579 | 19579 |
19580 /// @domName WebGLRenderingContext.stencilOp; @docsEditable true | 19580 /// @domName WebGLRenderingContext.stencilOp; @docsEditable true |
19581 void stencilOp(int fail, int zfail, int zpass) native; | 19581 void stencilOp(int fail, int zfail, int zpass) native; |
19582 | 19582 |
19583 /// @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true | 19583 /// @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true |
19584 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 19584 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
19585 | 19585 |
19586 /// @domName WebGLRenderingContext.texImage2D; @docsEditable true | 19586 /// @domName WebGLRenderingContext.texImage2D; @docsEditable true |
19587 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]) { | 19587 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]) { |
19588 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video =
= null))) { | 19588 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null)) { |
19589 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 19589 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
19590 return; | 19590 return; |
19591 } | 19591 } |
19592 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_v
ideo == null)) && | 19592 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && |
19593 !?format && | 19593 !?format && |
19594 !?type && | 19594 !?type && |
19595 !?pixels) { | 19595 !?pixels) { |
19596 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 19596 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
19597 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 19597 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
19598 return; | 19598 return; |
19599 } | 19599 } |
19600 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is ImageElement || border_OR_canvas_OR_image_OR_pixels_O
R_video == null)) && | 19600 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && |
19601 !?format && | 19601 !?format && |
19602 !?type && | 19602 !?type && |
19603 !?pixels) { | 19603 !?pixels) { |
19604 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 19604 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
19605 return; | 19605 return; |
19606 } | 19606 } |
19607 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is CanvasElement || border_OR_canvas_OR_image_OR_pixels_
OR_video == null)) && | 19607 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border
_OR_canvas_OR_image_OR_pixels_OR_video == null) && |
19608 !?format && | 19608 !?format && |
19609 !?type && | 19609 !?type && |
19610 !?pixels) { | 19610 !?pixels) { |
19611 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 19611 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
19612 return; | 19612 return; |
19613 } | 19613 } |
19614 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i
mage_OR_pixels_OR_video is VideoElement || border_OR_canvas_OR_image_OR_pixels_O
R_video == null)) && | 19614 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && |
19615 !?format && | 19615 !?format && |
19616 !?type && | 19616 !?type && |
19617 !?pixels) { | 19617 !?pixels) { |
19618 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 19618 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
19619 return; | 19619 return; |
19620 } | 19620 } |
19621 throw new ArgumentError("Incorrect number or type of arguments"); | 19621 throw new ArgumentError("Incorrect number or type of arguments"); |
19622 } | 19622 } |
19623 @JSName('texImage2D') | 19623 @JSName('texImage2D') |
19624 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native; | 19624 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native; |
19625 @JSName('texImage2D') | 19625 @JSName('texImage2D') |
19626 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; | 19626 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; |
19627 @JSName('texImage2D') | 19627 @JSName('texImage2D') |
19628 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; | 19628 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; |
19629 @JSName('texImage2D') | 19629 @JSName('texImage2D') |
19630 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; | 19630 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; |
19631 @JSName('texImage2D') | 19631 @JSName('texImage2D') |
19632 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; | 19632 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; |
19633 | 19633 |
19634 /// @domName WebGLRenderingContext.texParameterf; @docsEditable true | 19634 /// @domName WebGLRenderingContext.texParameterf; @docsEditable true |
19635 void texParameterf(int target, int pname, num param) native; | 19635 void texParameterf(int target, int pname, num param) native; |
19636 | 19636 |
19637 /// @domName WebGLRenderingContext.texParameteri; @docsEditable true | 19637 /// @domName WebGLRenderingContext.texParameteri; @docsEditable true |
19638 void texParameteri(int target, int pname, int param) native; | 19638 void texParameteri(int target, int pname, int param) native; |
19639 | 19639 |
19640 /// @domName WebGLRenderingContext.texSubImage2D; @docsEditable true | 19640 /// @domName WebGLRenderingContext.texSubImage2D; @docsEditable true |
19641 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]) { | 19641 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]) { |
19642 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video =
= null))) { | 19642 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null)) { |
19643 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 19643 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
19644 return; | 19644 return; |
19645 } | 19645 } |
19646 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_v
ideo == null)) && | 19646 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && |
19647 !?type && | 19647 !?type && |
19648 !?pixels) { | 19648 !?pixels) { |
19649 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 19649 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
19650 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 19650 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
19651 return; | 19651 return; |
19652 } | 19652 } |
19653 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is ImageElement || canvas_OR_format_OR_image_OR_pixels_O
R_video == null)) && | 19653 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && |
19654 !?type && | 19654 !?type && |
19655 !?pixels) { | 19655 !?pixels) { |
19656 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 19656 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
19657 return; | 19657 return; |
19658 } | 19658 } |
19659 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is CanvasElement || canvas_OR_format_OR_image_OR_pixels_
OR_video == null)) && | 19659 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && |
19660 !?type && | 19660 !?type && |
19661 !?pixels) { | 19661 !?pixels) { |
19662 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 19662 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
19663 return; | 19663 return; |
19664 } | 19664 } |
19665 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i
mage_OR_pixels_OR_video is VideoElement || canvas_OR_format_OR_image_OR_pixels_O
R_video == null)) && | 19665 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && |
19666 !?type && | 19666 !?type && |
19667 !?pixels) { | 19667 !?pixels) { |
19668 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 19668 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
19669 return; | 19669 return; |
19670 } | 19670 } |
19671 throw new ArgumentError("Incorrect number or type of arguments"); | 19671 throw new ArgumentError("Incorrect number or type of arguments"); |
19672 } | 19672 } |
19673 @JSName('texSubImage2D') | 19673 @JSName('texSubImage2D') |
19674 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native; | 19674 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native; |
19675 @JSName('texSubImage2D') | 19675 @JSName('texSubImage2D') |
(...skipping 5599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25275 T next() { | 25275 T next() { |
25276 if (!hasNext) { | 25276 if (!hasNext) { |
25277 throw new StateError("No more elements"); | 25277 throw new StateError("No more elements"); |
25278 } | 25278 } |
25279 return _array[_pos++]; | 25279 return _array[_pos++]; |
25280 } | 25280 } |
25281 | 25281 |
25282 final List<T> _array; | 25282 final List<T> _array; |
25283 int _pos; | 25283 int _pos; |
25284 } | 25284 } |
OLD | NEW |