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

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 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 } 2242 }
2243 throw new ArgumentError("Incorrect number or type of arguments"); 2243 throw new ArgumentError("Incorrect number or type of arguments");
2244 } 2244 }
2245 2245
2246 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_1_Callback"; 2246 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_1_Callback";
2247 2247
2248 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_2_Callback"; 2248 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_2_Callback";
2249 2249
2250 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_3_Callback"; 2250 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_3_Callback";
2251 2251
2252 @DomName('WebGLRenderingContext.bufferEmptyData')
2253 @DocsEditable
2254 void bufferEmptyData(int target, int size, int usage) native "WebGLRenderingCo ntext_bufferEmptyData_Callback";
2255
2252 void bufferSubData(int target, int offset, data) { 2256 void bufferSubData(int target, int offset, data) {
2253 if ((data is TypedData || data == null) && (offset is int || offset == null) && (target is int || target == null)) { 2257 if ((data is TypedData || data == null) && (offset is int || offset == null) && (target is int || target == null)) {
2254 _bufferSubData_1(target, offset, data); 2258 _bufferSubData_1(target, offset, data);
2255 return; 2259 return;
2256 } 2260 }
2257 if ((data is ByteBuffer || data == null) && (offset is int || offset == null ) && (target is int || target == null)) { 2261 if ((data is ByteBuffer || data == null) && (offset is int || offset == null ) && (target is int || target == null)) {
2258 _bufferSubData_2(target, offset, data); 2262 _bufferSubData_2(target, offset, data);
2259 return; 2263 return;
2260 } 2264 }
2261 throw new ArgumentError("Incorrect number or type of arguments"); 2265 throw new ArgumentError("Incorrect number or type of arguments");
2262 } 2266 }
2263 2267
2264 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf ferSubData_1_Callback"; 2268 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf ferSubData_1_Callback";
2265 2269
2266 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf ferSubData_2_Callback"; 2270 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf ferSubData_2_Callback";
2267 2271
2272 @DomName('WebGLRenderingContext.bufferSubTypedData')
2273 @DocsEditable
2274 void bufferSubTypedData(int target, int offset, TypedData data) native "WebGLR enderingContext_bufferSubTypedData_Callback";
2275
2276 @DomName('WebGLRenderingContext.bufferTypedData')
2277 @DocsEditable
2278 void bufferTypedData(int target, TypedData data, int usage) native "WebGLRende ringContext_bufferTypedData_Callback";
2279
2268 @DomName('WebGLRenderingContext.checkFramebufferStatus') 2280 @DomName('WebGLRenderingContext.checkFramebufferStatus')
2269 @DocsEditable 2281 @DocsEditable
2270 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram ebufferStatus_Callback"; 2282 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram ebufferStatus_Callback";
2271 2283
2272 @DomName('WebGLRenderingContext.clear') 2284 @DomName('WebGLRenderingContext.clear')
2273 @DocsEditable 2285 @DocsEditable
2274 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; 2286 void clear(int mask) native "WebGLRenderingContext_clear_Callback";
2275 2287
2276 @DomName('WebGLRenderingContext.clearColor') 2288 @DomName('WebGLRenderingContext.clearColor')
2277 @DocsEditable 2289 @DocsEditable
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 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"; 2652 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";
2641 2653
2642 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"; 2654 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";
2643 2655
2644 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"; 2656 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";
2645 2657
2646 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"; 2658 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";
2647 2659
2648 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"; 2660 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";
2649 2661
2662 @DomName('WebGLRenderingContext.texImage2DCanvas')
2663 @DocsEditable
2664 void texImage2DCanvas(int target, int level, int internalformat, int format, i nt type, CanvasElement canvas) native "WebGLRenderingContext_texImage2DCanvas_Ca llback";
2665
2666 @DomName('WebGLRenderingContext.texImage2DData')
2667 @DocsEditable
2668 void texImage2DData(int target, int level, int internalformat, int format, int type, ImageData pixels) native "WebGLRenderingContext_texImage2DData_Callback";
2669
2670 @DomName('WebGLRenderingContext.texImage2DImage')
2671 @DocsEditable
2672 void texImage2DImage(int target, int level, int internalformat, int format, in t type, ImageElement image) native "WebGLRenderingContext_texImage2DImage_Callba ck";
2673
2674 @DomName('WebGLRenderingContext.texImage2DVideo')
2675 @DocsEditable
2676 void texImage2DVideo(int target, int level, int internalformat, int format, in t type, VideoElement video) native "WebGLRenderingContext_texImage2DVideo_Callba ck";
2677
2650 @DomName('WebGLRenderingContext.texParameterf') 2678 @DomName('WebGLRenderingContext.texParameterf')
2651 @DocsEditable 2679 @DocsEditable
2652 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback"; 2680 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback";
2653 2681
2654 @DomName('WebGLRenderingContext.texParameteri') 2682 @DomName('WebGLRenderingContext.texParameteri')
2655 @DocsEditable 2683 @DocsEditable
2656 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback"; 2684 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback";
2657 2685
2658 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]) { 2686 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]) {
2659 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)) { 2687 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)) {
(...skipping 22 matching lines...) Expand all
2682 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"; 2710 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";
2683 2711
2684 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"; 2712 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";
2685 2713
2686 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"; 2714 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";
2687 2715
2688 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"; 2716 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";
2689 2717
2690 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"; 2718 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";
2691 2719
2720 @DomName('WebGLRenderingContext.texSubImage2DCanvas')
2721 @DocsEditable
2722 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native "WebGLRenderingContext_texSubImag e2DCanvas_Callback";
2723
2724 @DomName('WebGLRenderingContext.texSubImage2DData')
2725 @DocsEditable
2726 void texSubImage2DData(int target, int level, int xoffset, int yoffset, int fo rmat, int type, ImageData pixels) native "WebGLRenderingContext_texSubImage2DDat a_Callback";
2727
2728 @DomName('WebGLRenderingContext.texSubImage2DImage')
2729 @DocsEditable
2730 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f ormat, int type, ImageElement image) native "WebGLRenderingContext_texSubImage2D Image_Callback";
2731
2732 @DomName('WebGLRenderingContext.texSubImage2DVideo')
2733 @DocsEditable
2734 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f ormat, int type, VideoElement video) native "WebGLRenderingContext_texSubImage2D Video_Callback";
2735
2692 @DomName('WebGLRenderingContext.uniform1f') 2736 @DomName('WebGLRenderingContext.uniform1f')
2693 @DocsEditable 2737 @DocsEditable
2694 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_ uniform1f_Callback"; 2738 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_ uniform1f_Callback";
2695 2739
2696 @DomName('WebGLRenderingContext.uniform1fv') 2740 @DomName('WebGLRenderingContext.uniform1fv')
2697 @DocsEditable 2741 @DocsEditable
2698 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin gContext_uniform1fv_Callback"; 2742 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin gContext_uniform1fv_Callback";
2699 2743
2700 @DomName('WebGLRenderingContext.uniform1i') 2744 @DomName('WebGLRenderingContext.uniform1i')
2701 @DocsEditable 2745 @DocsEditable
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 2930
2887 2931
2888 @DocsEditable 2932 @DocsEditable
2889 @DomName('WebGLVertexArrayObjectOES') 2933 @DomName('WebGLVertexArrayObjectOES')
2890 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2934 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2891 @Experimental // experimental 2935 @Experimental // experimental
2892 class VertexArrayObject extends NativeFieldWrapperClass1 { 2936 class VertexArrayObject extends NativeFieldWrapperClass1 {
2893 VertexArrayObject.internal(); 2937 VertexArrayObject.internal();
2894 2938
2895 } 2939 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698