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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 void clearRect(num x, num y, num width, num height) native; | 1001 void clearRect(num x, num y, num width, num height) native; |
1002 | 1002 |
1003 /// @domName CanvasRenderingContext2D.clip; @docsEditable true | 1003 /// @domName CanvasRenderingContext2D.clip; @docsEditable true |
1004 void clip() native; | 1004 void clip() native; |
1005 | 1005 |
1006 /// @domName CanvasRenderingContext2D.closePath; @docsEditable true | 1006 /// @domName CanvasRenderingContext2D.closePath; @docsEditable true |
1007 void closePath() native; | 1007 void closePath() native; |
1008 | 1008 |
1009 /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true | 1009 /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true |
1010 ImageData createImageData(imagedata_OR_sw, [num sh]) { | 1010 ImageData createImageData(imagedata_OR_sw, [num sh]) { |
1011 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw ==
null)) && | 1011 if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && |
1012 !?sh) { | 1012 !?sh) { |
1013 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); | 1013 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); |
1014 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); | 1014 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); |
1015 } | 1015 } |
1016 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null)
)) { | 1016 if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) { |
1017 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); | 1017 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); |
1018 } | 1018 } |
1019 throw new ArgumentError("Incorrect number or type of arguments"); | 1019 throw new ArgumentError("Incorrect number or type of arguments"); |
1020 } | 1020 } |
1021 @JSName('createImageData') | 1021 @JSName('createImageData') |
1022 @Creates('ImageData|=Object') | 1022 @Creates('ImageData|=Object') |
1023 _createImageData_1(imagedata) native; | 1023 _createImageData_1(imagedata) native; |
1024 @JSName('createImageData') | 1024 @JSName('createImageData') |
1025 @Creates('ImageData|=Object') | 1025 @Creates('ImageData|=Object') |
1026 _createImageData_2(num sw, sh) native; | 1026 _createImageData_2(num sw, sh) native; |
(...skipping 18746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19773 void stencilMaskSeparate(int face, int mask) native; | 19773 void stencilMaskSeparate(int face, int mask) native; |
19774 | 19774 |
19775 /// @domName WebGLRenderingContext.stencilOp; @docsEditable true | 19775 /// @domName WebGLRenderingContext.stencilOp; @docsEditable true |
19776 void stencilOp(int fail, int zfail, int zpass) native; | 19776 void stencilOp(int fail, int zfail, int zpass) native; |
19777 | 19777 |
19778 /// @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true | 19778 /// @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true |
19779 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 19779 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
19780 | 19780 |
19781 /// @domName WebGLRenderingContext.texImage2D; @docsEditable true | 19781 /// @domName WebGLRenderingContext.texImage2D; @docsEditable true |
19782 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]) { | 19782 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]) { |
19783 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))) { | 19783 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null)) { |
19784 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 19784 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
19785 return; | 19785 return; |
19786 } | 19786 } |
19787 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)) && | 19787 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && |
19788 !?format && | 19788 !?format && |
19789 !?type && | 19789 !?type && |
19790 !?pixels) { | 19790 !?pixels) { |
19791 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 19791 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
19792 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 19792 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
19793 return; | 19793 return; |
19794 } | 19794 } |
19795 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)) && | 19795 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && |
19796 !?format && | 19796 !?format && |
19797 !?type && | 19797 !?type && |
19798 !?pixels) { | 19798 !?pixels) { |
19799 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 19799 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
19800 return; | 19800 return; |
19801 } | 19801 } |
19802 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)) && | 19802 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border
_OR_canvas_OR_image_OR_pixels_OR_video == null) && |
19803 !?format && | 19803 !?format && |
19804 !?type && | 19804 !?type && |
19805 !?pixels) { | 19805 !?pixels) { |
19806 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 19806 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
19807 return; | 19807 return; |
19808 } | 19808 } |
19809 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)) && | 19809 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && |
19810 !?format && | 19810 !?format && |
19811 !?type && | 19811 !?type && |
19812 !?pixels) { | 19812 !?pixels) { |
19813 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 19813 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
19814 return; | 19814 return; |
19815 } | 19815 } |
19816 throw new ArgumentError("Incorrect number or type of arguments"); | 19816 throw new ArgumentError("Incorrect number or type of arguments"); |
19817 } | 19817 } |
19818 @JSName('texImage2D') | 19818 @JSName('texImage2D') |
19819 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native; | 19819 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native; |
19820 @JSName('texImage2D') | 19820 @JSName('texImage2D') |
19821 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; | 19821 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; |
19822 @JSName('texImage2D') | 19822 @JSName('texImage2D') |
19823 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; | 19823 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; |
19824 @JSName('texImage2D') | 19824 @JSName('texImage2D') |
19825 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; | 19825 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; |
19826 @JSName('texImage2D') | 19826 @JSName('texImage2D') |
19827 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; | 19827 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; |
19828 | 19828 |
19829 /// @domName WebGLRenderingContext.texParameterf; @docsEditable true | 19829 /// @domName WebGLRenderingContext.texParameterf; @docsEditable true |
19830 void texParameterf(int target, int pname, num param) native; | 19830 void texParameterf(int target, int pname, num param) native; |
19831 | 19831 |
19832 /// @domName WebGLRenderingContext.texParameteri; @docsEditable true | 19832 /// @domName WebGLRenderingContext.texParameteri; @docsEditable true |
19833 void texParameteri(int target, int pname, int param) native; | 19833 void texParameteri(int target, int pname, int param) native; |
19834 | 19834 |
19835 /// @domName WebGLRenderingContext.texSubImage2D; @docsEditable true | 19835 /// @domName WebGLRenderingContext.texSubImage2D; @docsEditable true |
19836 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]) { | 19836 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]) { |
19837 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))) { | 19837 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null)) { |
19838 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 19838 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
19839 return; | 19839 return; |
19840 } | 19840 } |
19841 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)) && | 19841 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && |
19842 !?type && | 19842 !?type && |
19843 !?pixels) { | 19843 !?pixels) { |
19844 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 19844 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
19845 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 19845 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
19846 return; | 19846 return; |
19847 } | 19847 } |
19848 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)) && | 19848 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && |
19849 !?type && | 19849 !?type && |
19850 !?pixels) { | 19850 !?pixels) { |
19851 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 19851 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
19852 return; | 19852 return; |
19853 } | 19853 } |
19854 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)) && | 19854 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && |
19855 !?type && | 19855 !?type && |
19856 !?pixels) { | 19856 !?pixels) { |
19857 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 19857 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
19858 return; | 19858 return; |
19859 } | 19859 } |
19860 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)) && | 19860 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && |
19861 !?type && | 19861 !?type && |
19862 !?pixels) { | 19862 !?pixels) { |
19863 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 19863 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
19864 return; | 19864 return; |
19865 } | 19865 } |
19866 throw new ArgumentError("Incorrect number or type of arguments"); | 19866 throw new ArgumentError("Incorrect number or type of arguments"); |
19867 } | 19867 } |
19868 @JSName('texSubImage2D') | 19868 @JSName('texSubImage2D') |
19869 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native; | 19869 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native; |
19870 @JSName('texSubImage2D') | 19870 @JSName('texSubImage2D') |
(...skipping 5619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25490 T next() { | 25490 T next() { |
25491 if (!hasNext) { | 25491 if (!hasNext) { |
25492 throw new StateError("No more elements"); | 25492 throw new StateError("No more elements"); |
25493 } | 25493 } |
25494 return _array[_pos++]; | 25494 return _array[_pos++]; |
25495 } | 25495 } |
25496 | 25496 |
25497 final List<T> _array; | 25497 final List<T> _array; |
25498 int _pos; | 25498 int _pos; |
25499 } | 25499 } |
OLD | NEW |