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

Side by Side Diff: sdk/lib/web_gl/dartium/web_gl_dartium.dart

Issue 16494002: Expand overloaded methods and optional parameters in the html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
OLDNEW
1 library dart.dom.web_gl; 1 library dart.dom.web_gl;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC ontext_blendEquationSeparate_Callback"; 2219 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC ontext_blendEquationSeparate_Callback";
2220 2220
2221 @DomName('WebGLRenderingContext.blendFunc') 2221 @DomName('WebGLRenderingContext.blendFunc')
2222 @DocsEditable 2222 @DocsEditable
2223 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu nc_Callback"; 2223 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu nc_Callback";
2224 2224
2225 @DomName('WebGLRenderingContext.blendFuncSeparate') 2225 @DomName('WebGLRenderingContext.blendFuncSeparate')
2226 @DocsEditable 2226 @DocsEditable
2227 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive "WebGLRenderingContext_blendFuncSeparate_Callback"; 2227 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive "WebGLRenderingContext_blendFuncSeparate_Callback";
2228 2228
2229 void bufferData(int target, data_OR_size, int usage) { 2229 @DomName('WebGLRenderingContext.bufferData')
2230 if ((usage is int || usage == null) && (data_OR_size is TypedData || data_OR _size == null) && (target is int || target == null)) { 2230 @DocsEditable
2231 _bufferData_1(target, data_OR_size, usage); 2231 void bufferData(int target, ByteBuffer data, int usage) native "WebGLRendering Context_bufferData_Callback";
2232 return;
2233 }
2234 if ((usage is int || usage == null) && (data_OR_size is ByteBuffer || data_O R_size == null) && (target is int || target == null)) {
2235 _bufferData_2(target, data_OR_size, usage);
2236 return;
2237 }
2238 if ((usage is int || usage == null) && (data_OR_size is int || data_OR_size == null) && (target is int || target == null)) {
2239 _bufferData_3(target, data_OR_size, usage);
2240 return;
2241 }
2242 throw new ArgumentError("Incorrect number or type of arguments");
2243 }
2244 2232
2245 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_1_Callback"; 2233 @DomName('WebGLRenderingContext.bufferEmptyData')
2234 @DocsEditable
2235 void bufferEmptyData(int target, int size, int usage) native "WebGLRenderingCo ntext_bufferEmptyData_Callback";
2246 2236
2247 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_2_Callback"; 2237 @DomName('WebGLRenderingContext.bufferSubData')
2238 @DocsEditable
2239 void bufferSubData(int target, int offset, ByteBuffer data) native "WebGLRende ringContext_bufferSubData_Callback";
2248 2240
2249 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_3_Callback"; 2241 @DomName('WebGLRenderingContext.bufferSubTypedData')
2242 @DocsEditable
2243 void bufferSubTypedData(int target, int offset, TypedData data) native "WebGLR enderingContext_bufferSubTypedData_Callback";
2250 2244
2251 void bufferSubData(int target, int offset, data) { 2245 @DomName('WebGLRenderingContext.bufferTypedData')
2252 if ((data is TypedData || data == null) && (offset is int || offset == null) && (target is int || target == null)) { 2246 @DocsEditable
2253 _bufferSubData_1(target, offset, data); 2247 void bufferTypedData(int target, TypedData data, int usage) native "WebGLRende ringContext_bufferTypedData_Callback";
2254 return;
2255 }
2256 if ((data is ByteBuffer || data == null) && (offset is int || offset == null ) && (target is int || target == null)) {
2257 _bufferSubData_2(target, offset, data);
2258 return;
2259 }
2260 throw new ArgumentError("Incorrect number or type of arguments");
2261 }
2262
2263 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf ferSubData_1_Callback";
2264
2265 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf ferSubData_2_Callback";
2266 2248
2267 @DomName('WebGLRenderingContext.checkFramebufferStatus') 2249 @DomName('WebGLRenderingContext.checkFramebufferStatus')
2268 @DocsEditable 2250 @DocsEditable
2269 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram ebufferStatus_Callback"; 2251 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram ebufferStatus_Callback";
2270 2252
2271 @DomName('WebGLRenderingContext.clear') 2253 @DomName('WebGLRenderingContext.clear')
2272 @DocsEditable 2254 @DocsEditable
2273 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; 2255 void clear(int mask) native "WebGLRenderingContext_clear_Callback";
2274 2256
2275 @DomName('WebGLRenderingContext.clearColor') 2257 @DomName('WebGLRenderingContext.clearColor')
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
2605 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback"; 2587 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback";
2606 2588
2607 @DomName('WebGLRenderingContext.stencilOp') 2589 @DomName('WebGLRenderingContext.stencilOp')
2608 @DocsEditable 2590 @DocsEditable
2609 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback"; 2591 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback";
2610 2592
2611 @DomName('WebGLRenderingContext.stencilOpSeparate') 2593 @DomName('WebGLRenderingContext.stencilOpSeparate')
2612 @DocsEditable 2594 @DocsEditable
2613 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback"; 2595 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback";
2614 2596
2615 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, TypedData pixels]) { 2597 @DomName('WebGLRenderingContext.texImage2D')
2616 if ((pixels is TypedData || pixels == null) && (type is int || type == null) && (format is int || format == null) && (border_OR_canvas_OR_image_OR_pixels_OR _video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && (heigh t_OR_type is int || height_OR_type == null) && (format_OR_width is int || format _OR_width == null) && (internalformat is int || internalformat == null) && (leve l is int || level == null) && (target is int || target == null)) { 2598 @DocsEditable
2617 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 2599 void texImage2D(int target, int level, int internalformat, int width, int heig ht, int border, int format, int type, TypedData pixels) native "WebGLRenderingCo ntext_texImage2D_Callback";
2618 return;
2619 }
2620 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_ OR_type == null) && (format_OR_width is int || format_OR_width == null) && (inte rnalformat is int || internalformat == null) && (level is int || level == null) && (target is int || target == null) && format == null && type == null && pixels == null) {
2621 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2622 return;
2623 }
2624 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (i nternalformat is int || internalformat == null) && (level is int || level == nul l) && (target is int || target == null) && format == null && type == null && pix els == null) {
2625 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2626 return;
2627 }
2628 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border _OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || hei ght_OR_type == null) && (format_OR_width is int || format_OR_width == null) && ( internalformat is int || internalformat == null) && (level is int || level == nu ll) && (target is int || target == null) && format == null && type == null && pi xels == null) {
2629 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2630 return;
2631 }
2632 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (i nternalformat is int || internalformat == null) && (level is int || level == nul l) && (target is int || target == null) && format == null && type == null && pix els == null) {
2633 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2634 return;
2635 }
2636 throw new ArgumentError("Incorrect number or type of arguments");
2637 }
2638 2600
2639 void _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels) native "WebGLRenderingContext__texImage2D_1_Callback"; 2601 @DomName('WebGLRenderingContext.texImage2DCanvas')
2602 @DocsEditable
2603 void texImage2DCanvas(int target, int level, int internalformat, int format, i nt type, CanvasElement canvas) native "WebGLRenderingContext_texImage2DCanvas_Ca llback";
2640 2604
2641 void _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_2_Callback"; 2605 @DomName('WebGLRenderingContext.texImage2DData')
2606 @DocsEditable
2607 void texImage2DData(int target, int level, int internalformat, int format, int type, ImageData pixels) native "WebGLRenderingContext_texImage2DData_Callback";
2642 2608
2643 void _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_3_Callback"; 2609 @DomName('WebGLRenderingContext.texImage2DImage')
2610 @DocsEditable
2611 void texImage2DImage(int target, int level, int internalformat, int format, in t type, ImageElement image) native "WebGLRenderingContext_texImage2DImage_Callba ck";
2644 2612
2645 void _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_4_Callback"; 2613 @DomName('WebGLRenderingContext.texImage2DVideo')
2646 2614 @DocsEditable
2647 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_5_Callback"; 2615 void texImage2DVideo(int target, int level, int internalformat, int format, in t type, VideoElement video) native "WebGLRenderingContext_texImage2DVideo_Callba ck";
2648 2616
2649 @DomName('WebGLRenderingContext.texParameterf') 2617 @DomName('WebGLRenderingContext.texParameterf')
2650 @DocsEditable 2618 @DocsEditable
2651 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback"; 2619 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback";
2652 2620
2653 @DomName('WebGLRenderingContext.texParameteri') 2621 @DomName('WebGLRenderingContext.texParameteri')
2654 @DocsEditable 2622 @DocsEditable
2655 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback"; 2623 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback";
2656 2624
2657 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, TypedData pixels]) { 2625 @DomName('WebGLRenderingContext.texSubImage2D')
2658 if ((pixels is TypedData || pixels == null) && (type is int || type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format_OR_ image_OR_pixels_OR_video == null) && (height_OR_type is int || height_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoffset is int || yoffset == null) && (xoffset is int || xoffset == null) && (level is int || level == null) && (target is int || target == null)) { 2626 @DocsEditable
2659 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 2627 void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, TypedData pixels) native "WebGLRenderingConte xt_texSubImage2D_Callback";
2660 return;
2661 }
2662 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_ OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoff set is int || yoffset == null) && (xoffset is int || xoffset == null) && (level is int || level == null) && (target is int || target == null) && type == null && pixels == null) {
2663 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2664 return;
2665 }
2666 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (y offset is int || yoffset == null) && (xoffset is int || xoffset == null) && (lev el is int || level == null) && (target is int || target == null) && type == null && pixels == null) {
2667 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2668 return;
2669 }
2670 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas _OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || hei ght_OR_type == null) && (format_OR_width is int || format_OR_width == null) && ( yoffset is int || yoffset == null) && (xoffset is int || xoffset == null) && (le vel is int || level == null) && (target is int || target == null) && type == nul l && pixels == null) {
2671 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2672 return;
2673 }
2674 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (y offset is int || yoffset == null) && (xoffset is int || xoffset == null) && (lev el is int || level == null) && (target is int || target == null) && type == null && pixels == null) {
2675 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2676 return;
2677 }
2678 throw new ArgumentError("Incorrect number or type of arguments");
2679 }
2680 2628
2681 void _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels) native "We bGLRenderingContext__texSubImage2D_1_Callback"; 2629 @DomName('WebGLRenderingContext.texSubImage2DCanvas')
2630 @DocsEditable
2631 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native "WebGLRenderingContext_texSubImag e2DCanvas_Callback";
2682 2632
2683 void _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_2_Callback"; 2633 @DomName('WebGLRenderingContext.texSubImage2DData')
2634 @DocsEditable
2635 void texSubImage2DData(int target, int level, int xoffset, int yoffset, int fo rmat, int type, ImageData pixels) native "WebGLRenderingContext_texSubImage2DDat a_Callback";
2684 2636
2685 void _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_3_Callback"; 2637 @DomName('WebGLRenderingContext.texSubImage2DImage')
2638 @DocsEditable
2639 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f ormat, int type, ImageElement image) native "WebGLRenderingContext_texSubImage2D Image_Callback";
2686 2640
2687 void _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_4_Callback"; 2641 @DomName('WebGLRenderingContext.texSubImage2DVideo')
2688 2642 @DocsEditable
2689 void _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_5_Callback"; 2643 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f ormat, int type, VideoElement video) native "WebGLRenderingContext_texSubImage2D Video_Callback";
2690 2644
2691 @DomName('WebGLRenderingContext.uniform1f') 2645 @DomName('WebGLRenderingContext.uniform1f')
2692 @DocsEditable 2646 @DocsEditable
2693 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_ uniform1f_Callback"; 2647 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_ uniform1f_Callback";
2694 2648
2695 @DomName('WebGLRenderingContext.uniform1fv') 2649 @DomName('WebGLRenderingContext.uniform1fv')
2696 @DocsEditable 2650 @DocsEditable
2697 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin gContext_uniform1fv_Callback"; 2651 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin gContext_uniform1fv_Callback";
2698 2652
2699 @DomName('WebGLRenderingContext.uniform1i') 2653 @DomName('WebGLRenderingContext.uniform1i')
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 2839
2886 2840
2887 @DocsEditable 2841 @DocsEditable
2888 @DomName('WebGLVertexArrayObjectOES') 2842 @DomName('WebGLVertexArrayObjectOES')
2889 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2843 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2890 @Experimental // experimental 2844 @Experimental // experimental
2891 class VertexArrayObject extends NativeFieldWrapperClass1 { 2845 class VertexArrayObject extends NativeFieldWrapperClass1 {
2892 VertexArrayObject.internal(); 2846 VertexArrayObject.internal();
2893 2847
2894 } 2848 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698