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

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

Issue 671023003: More dart:blink entry point tweaks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Static permission getter Created 6 years, 1 month 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:_internal' hide deprecated; 5 import 'dart:_internal' hide deprecated;
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 import 'dart:_blink' as _blink; 10 import 'dart:_blink' as _blink;
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 @DocsEditable() 983 @DocsEditable()
984 @DomName('WebGLLoseContext') 984 @DomName('WebGLLoseContext')
985 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 985 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
986 @Experimental() 986 @Experimental()
987 class LoseContext extends NativeFieldWrapperClass2 { 987 class LoseContext extends NativeFieldWrapperClass2 {
988 // To suppress missing implicit constructor warnings. 988 // To suppress missing implicit constructor warnings.
989 factory LoseContext._() { throw new UnsupportedError("Not supported"); } 989 factory LoseContext._() { throw new UnsupportedError("Not supported"); }
990 990
991 @DomName('WebGLLoseContext.loseContext') 991 @DomName('WebGLLoseContext.loseContext')
992 @DocsEditable() 992 @DocsEditable()
993 void loseContext() => _blink.BlinkWebGLLoseContext.loseContext_Callback(this); 993 void loseContext() => _blink.BlinkWebGLLoseContext.loseContext_Callback_0(this );
994 994
995 @DomName('WebGLLoseContext.restoreContext') 995 @DomName('WebGLLoseContext.restoreContext')
996 @DocsEditable() 996 @DocsEditable()
997 void restoreContext() => _blink.BlinkWebGLLoseContext.restoreContext_Callback( this); 997 void restoreContext() => _blink.BlinkWebGLLoseContext.restoreContext_Callback_ 0(this);
998 998
999 } 999 }
1000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1001 // for details. All rights reserved. Use of this source code is governed by a 1001 // for details. All rights reserved. Use of this source code is governed by a
1002 // BSD-style license that can be found in the LICENSE file. 1002 // BSD-style license that can be found in the LICENSE file.
1003 1003
1004 // WARNING: Do not edit - generated code. 1004 // WARNING: Do not edit - generated code.
1005 1005
1006 1006
1007 @DocsEditable() 1007 @DocsEditable()
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 1119 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
1120 @DocsEditable() 1120 @DocsEditable()
1121 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 1121 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
1122 1122
1123 @DomName('OESVertexArrayObject.bindVertexArrayOES') 1123 @DomName('OESVertexArrayObject.bindVertexArrayOES')
1124 @DocsEditable() 1124 @DocsEditable()
1125 void bindVertexArray(VertexArrayObject arrayObject) => _blink.BlinkOESVertexAr rayObject.bindVertexArrayOES_Callback_1(this, arrayObject); 1125 void bindVertexArray(VertexArrayObject arrayObject) => _blink.BlinkOESVertexAr rayObject.bindVertexArrayOES_Callback_1(this, arrayObject);
1126 1126
1127 @DomName('OESVertexArrayObject.createVertexArrayOES') 1127 @DomName('OESVertexArrayObject.createVertexArrayOES')
1128 @DocsEditable() 1128 @DocsEditable()
1129 VertexArrayObject createVertexArray() => _blink.BlinkOESVertexArrayObject.crea teVertexArrayOES_Callback(this); 1129 VertexArrayObject createVertexArray() => _blink.BlinkOESVertexArrayObject.crea teVertexArrayOES_Callback_0(this);
1130 1130
1131 @DomName('OESVertexArrayObject.deleteVertexArrayOES') 1131 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
1132 @DocsEditable() 1132 @DocsEditable()
1133 void deleteVertexArray(VertexArrayObject arrayObject) => _blink.BlinkOESVertex ArrayObject.deleteVertexArrayOES_Callback_1(this, arrayObject); 1133 void deleteVertexArray(VertexArrayObject arrayObject) => _blink.BlinkOESVertex ArrayObject.deleteVertexArrayOES_Callback_1(this, arrayObject);
1134 1134
1135 @DomName('OESVertexArrayObject.isVertexArrayOES') 1135 @DomName('OESVertexArrayObject.isVertexArrayOES')
1136 @DocsEditable() 1136 @DocsEditable()
1137 bool isVertexArray(VertexArrayObject arrayObject) => _blink.BlinkOESVertexArra yObject.isVertexArrayOES_Callback_1(this, arrayObject); 1137 bool isVertexArray(VertexArrayObject arrayObject) => _blink.BlinkOESVertexArra yObject.isVertexArrayOES_Callback_1(this, arrayObject);
1138 1138
1139 } 1139 }
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 @DomName('WebGLRenderingContext.copyTexImage2D') 2518 @DomName('WebGLRenderingContext.copyTexImage2D')
2519 @DocsEditable() 2519 @DocsEditable()
2520 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) => _blink.BlinkWebGLRenderingContext.copyTexIm age2D_Callback_8(this, target, level, internalformat, x, y, width, height, borde r); 2520 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) => _blink.BlinkWebGLRenderingContext.copyTexIm age2D_Callback_8(this, target, level, internalformat, x, y, width, height, borde r);
2521 2521
2522 @DomName('WebGLRenderingContext.copyTexSubImage2D') 2522 @DomName('WebGLRenderingContext.copyTexSubImage2D')
2523 @DocsEditable() 2523 @DocsEditable()
2524 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) => _blink.BlinkWebGLRenderingContext.copyTexSubIm age2D_Callback_8(this, target, level, xoffset, yoffset, x, y, width, height); 2524 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) => _blink.BlinkWebGLRenderingContext.copyTexSubIm age2D_Callback_8(this, target, level, xoffset, yoffset, x, y, width, height);
2525 2525
2526 @DomName('WebGLRenderingContext.createBuffer') 2526 @DomName('WebGLRenderingContext.createBuffer')
2527 @DocsEditable() 2527 @DocsEditable()
2528 Buffer createBuffer() => _blink.BlinkWebGLRenderingContext.createBuffer_Callba ck(this); 2528 Buffer createBuffer() => _blink.BlinkWebGLRenderingContext.createBuffer_Callba ck_0(this);
2529 2529
2530 @DomName('WebGLRenderingContext.createFramebuffer') 2530 @DomName('WebGLRenderingContext.createFramebuffer')
2531 @DocsEditable() 2531 @DocsEditable()
2532 Framebuffer createFramebuffer() => _blink.BlinkWebGLRenderingContext.createFra mebuffer_Callback(this); 2532 Framebuffer createFramebuffer() => _blink.BlinkWebGLRenderingContext.createFra mebuffer_Callback_0(this);
2533 2533
2534 @DomName('WebGLRenderingContext.createProgram') 2534 @DomName('WebGLRenderingContext.createProgram')
2535 @DocsEditable() 2535 @DocsEditable()
2536 Program createProgram() => _blink.BlinkWebGLRenderingContext.createProgram_Cal lback(this); 2536 Program createProgram() => _blink.BlinkWebGLRenderingContext.createProgram_Cal lback_0(this);
2537 2537
2538 @DomName('WebGLRenderingContext.createRenderbuffer') 2538 @DomName('WebGLRenderingContext.createRenderbuffer')
2539 @DocsEditable() 2539 @DocsEditable()
2540 Renderbuffer createRenderbuffer() => _blink.BlinkWebGLRenderingContext.createR enderbuffer_Callback(this); 2540 Renderbuffer createRenderbuffer() => _blink.BlinkWebGLRenderingContext.createR enderbuffer_Callback_0(this);
2541 2541
2542 @DomName('WebGLRenderingContext.createShader') 2542 @DomName('WebGLRenderingContext.createShader')
2543 @DocsEditable() 2543 @DocsEditable()
2544 Shader createShader(int type) => _blink.BlinkWebGLRenderingContext.createShade r_Callback_1(this, type); 2544 Shader createShader(int type) => _blink.BlinkWebGLRenderingContext.createShade r_Callback_1(this, type);
2545 2545
2546 @DomName('WebGLRenderingContext.createTexture') 2546 @DomName('WebGLRenderingContext.createTexture')
2547 @DocsEditable() 2547 @DocsEditable()
2548 Texture createTexture() => _blink.BlinkWebGLRenderingContext.createTexture_Cal lback(this); 2548 Texture createTexture() => _blink.BlinkWebGLRenderingContext.createTexture_Cal lback_0(this);
2549 2549
2550 @DomName('WebGLRenderingContext.cullFace') 2550 @DomName('WebGLRenderingContext.cullFace')
2551 @DocsEditable() 2551 @DocsEditable()
2552 void cullFace(int mode) => _blink.BlinkWebGLRenderingContext.cullFace_Callback _1(this, mode); 2552 void cullFace(int mode) => _blink.BlinkWebGLRenderingContext.cullFace_Callback _1(this, mode);
2553 2553
2554 @DomName('WebGLRenderingContext.deleteBuffer') 2554 @DomName('WebGLRenderingContext.deleteBuffer')
2555 @DocsEditable() 2555 @DocsEditable()
2556 void deleteBuffer(Buffer buffer) => _blink.BlinkWebGLRenderingContext.deleteBu ffer_Callback_1(this, buffer); 2556 void deleteBuffer(Buffer buffer) => _blink.BlinkWebGLRenderingContext.deleteBu ffer_Callback_1(this, buffer);
2557 2557
2558 @DomName('WebGLRenderingContext.deleteFramebuffer') 2558 @DomName('WebGLRenderingContext.deleteFramebuffer')
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
2610 @DomName('WebGLRenderingContext.enable') 2610 @DomName('WebGLRenderingContext.enable')
2611 @DocsEditable() 2611 @DocsEditable()
2612 void enable(int cap) => _blink.BlinkWebGLRenderingContext.enable_Callback_1(th is, cap); 2612 void enable(int cap) => _blink.BlinkWebGLRenderingContext.enable_Callback_1(th is, cap);
2613 2613
2614 @DomName('WebGLRenderingContext.enableVertexAttribArray') 2614 @DomName('WebGLRenderingContext.enableVertexAttribArray')
2615 @DocsEditable() 2615 @DocsEditable()
2616 void enableVertexAttribArray(int index) => _blink.BlinkWebGLRenderingContext.e nableVertexAttribArray_Callback_1(this, index); 2616 void enableVertexAttribArray(int index) => _blink.BlinkWebGLRenderingContext.e nableVertexAttribArray_Callback_1(this, index);
2617 2617
2618 @DomName('WebGLRenderingContext.finish') 2618 @DomName('WebGLRenderingContext.finish')
2619 @DocsEditable() 2619 @DocsEditable()
2620 void finish() => _blink.BlinkWebGLRenderingContext.finish_Callback(this); 2620 void finish() => _blink.BlinkWebGLRenderingContext.finish_Callback_0(this);
2621 2621
2622 @DomName('WebGLRenderingContext.flush') 2622 @DomName('WebGLRenderingContext.flush')
2623 @DocsEditable() 2623 @DocsEditable()
2624 void flush() => _blink.BlinkWebGLRenderingContext.flush_Callback(this); 2624 void flush() => _blink.BlinkWebGLRenderingContext.flush_Callback_0(this);
2625 2625
2626 @DomName('WebGLRenderingContext.framebufferRenderbuffer') 2626 @DomName('WebGLRenderingContext.framebufferRenderbuffer')
2627 @DocsEditable() 2627 @DocsEditable()
2628 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) => _blink.BlinkWebGLRenderingContext.framebufferRe nderbuffer_Callback_4(this, target, attachment, renderbuffertarget, renderbuffer ); 2628 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) => _blink.BlinkWebGLRenderingContext.framebufferRe nderbuffer_Callback_4(this, target, attachment, renderbuffertarget, renderbuffer );
2629 2629
2630 @DomName('WebGLRenderingContext.framebufferTexture2D') 2630 @DomName('WebGLRenderingContext.framebufferTexture2D')
2631 @DocsEditable() 2631 @DocsEditable()
2632 void framebufferTexture2D(int target, int attachment, int textarget, Texture t exture, int level) => _blink.BlinkWebGLRenderingContext.framebufferTexture2D_Cal lback_5(this, target, attachment, textarget, texture, level); 2632 void framebufferTexture2D(int target, int attachment, int textarget, Texture t exture, int level) => _blink.BlinkWebGLRenderingContext.framebufferTexture2D_Cal lback_5(this, target, attachment, textarget, texture, level);
2633 2633
2634 @DomName('WebGLRenderingContext.frontFace') 2634 @DomName('WebGLRenderingContext.frontFace')
(...skipping 19 matching lines...) Expand all
2654 @DomName('WebGLRenderingContext.getAttribLocation') 2654 @DomName('WebGLRenderingContext.getAttribLocation')
2655 @DocsEditable() 2655 @DocsEditable()
2656 int getAttribLocation(Program program, String name) => _blink.BlinkWebGLRender ingContext.getAttribLocation_Callback_2(this, program, name); 2656 int getAttribLocation(Program program, String name) => _blink.BlinkWebGLRender ingContext.getAttribLocation_Callback_2(this, program, name);
2657 2657
2658 @DomName('WebGLRenderingContext.getBufferParameter') 2658 @DomName('WebGLRenderingContext.getBufferParameter')
2659 @DocsEditable() 2659 @DocsEditable()
2660 Object getBufferParameter(int target, int pname) => _blink.BlinkWebGLRendering Context.getBufferParameter_Callback_2(this, target, pname); 2660 Object getBufferParameter(int target, int pname) => _blink.BlinkWebGLRendering Context.getBufferParameter_Callback_2(this, target, pname);
2661 2661
2662 @DomName('WebGLRenderingContext.getContextAttributes') 2662 @DomName('WebGLRenderingContext.getContextAttributes')
2663 @DocsEditable() 2663 @DocsEditable()
2664 ContextAttributes getContextAttributes() => _blink.BlinkWebGLRenderingContext. getContextAttributes_Callback(this); 2664 ContextAttributes getContextAttributes() => _blink.BlinkWebGLRenderingContext. getContextAttributes_Callback_0(this);
2665 2665
2666 @DomName('WebGLRenderingContext.getError') 2666 @DomName('WebGLRenderingContext.getError')
2667 @DocsEditable() 2667 @DocsEditable()
2668 int getError() => _blink.BlinkWebGLRenderingContext.getError_Callback(this); 2668 int getError() => _blink.BlinkWebGLRenderingContext.getError_Callback_0(this);
2669 2669
2670 @DomName('WebGLRenderingContext.getExtension') 2670 @DomName('WebGLRenderingContext.getExtension')
2671 @DocsEditable() 2671 @DocsEditable()
2672 Object getExtension(String name) => _blink.BlinkWebGLRenderingContext.getExten sion_Callback_1(this, name); 2672 Object getExtension(String name) => _blink.BlinkWebGLRenderingContext.getExten sion_Callback_1(this, name);
2673 2673
2674 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') 2674 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
2675 @DocsEditable() 2675 @DocsEditable()
2676 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) => _blink.BlinkWebGLRenderingContext.getFramebufferAttachmentParameter_Callbac k_3(this, target, attachment, pname); 2676 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) => _blink.BlinkWebGLRenderingContext.getFramebufferAttachmentParameter_Callbac k_3(this, target, attachment, pname);
2677 2677
2678 @DomName('WebGLRenderingContext.getParameter') 2678 @DomName('WebGLRenderingContext.getParameter')
(...skipping 23 matching lines...) Expand all
2702 @DomName('WebGLRenderingContext.getShaderPrecisionFormat') 2702 @DomName('WebGLRenderingContext.getShaderPrecisionFormat')
2703 @DocsEditable() 2703 @DocsEditable()
2704 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) => _blink.BlinkWebGLRenderingContext.getShaderPrecisionFormat_Callback_2(thi s, shadertype, precisiontype); 2704 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) => _blink.BlinkWebGLRenderingContext.getShaderPrecisionFormat_Callback_2(thi s, shadertype, precisiontype);
2705 2705
2706 @DomName('WebGLRenderingContext.getShaderSource') 2706 @DomName('WebGLRenderingContext.getShaderSource')
2707 @DocsEditable() 2707 @DocsEditable()
2708 String getShaderSource(Shader shader) => _blink.BlinkWebGLRenderingContext.get ShaderSource_Callback_1(this, shader); 2708 String getShaderSource(Shader shader) => _blink.BlinkWebGLRenderingContext.get ShaderSource_Callback_1(this, shader);
2709 2709
2710 @DomName('WebGLRenderingContext.getSupportedExtensions') 2710 @DomName('WebGLRenderingContext.getSupportedExtensions')
2711 @DocsEditable() 2711 @DocsEditable()
2712 List<String> getSupportedExtensions() => _blink.BlinkWebGLRenderingContext.get SupportedExtensions_Callback(this); 2712 List<String> getSupportedExtensions() => _blink.BlinkWebGLRenderingContext.get SupportedExtensions_Callback_0(this);
2713 2713
2714 @DomName('WebGLRenderingContext.getTexParameter') 2714 @DomName('WebGLRenderingContext.getTexParameter')
2715 @DocsEditable() 2715 @DocsEditable()
2716 Object getTexParameter(int target, int pname) => _blink.BlinkWebGLRenderingCon text.getTexParameter_Callback_2(this, target, pname); 2716 Object getTexParameter(int target, int pname) => _blink.BlinkWebGLRenderingCon text.getTexParameter_Callback_2(this, target, pname);
2717 2717
2718 @DomName('WebGLRenderingContext.getUniform') 2718 @DomName('WebGLRenderingContext.getUniform')
2719 @DocsEditable() 2719 @DocsEditable()
2720 Object getUniform(Program program, UniformLocation location) => _blink.BlinkWe bGLRenderingContext.getUniform_Callback_2(this, program, location); 2720 Object getUniform(Program program, UniformLocation location) => _blink.BlinkWe bGLRenderingContext.getUniform_Callback_2(this, program, location);
2721 2721
2722 @DomName('WebGLRenderingContext.getUniformLocation') 2722 @DomName('WebGLRenderingContext.getUniformLocation')
(...skipping 11 matching lines...) Expand all
2734 @DomName('WebGLRenderingContext.hint') 2734 @DomName('WebGLRenderingContext.hint')
2735 @DocsEditable() 2735 @DocsEditable()
2736 void hint(int target, int mode) => _blink.BlinkWebGLRenderingContext.hint_Call back_2(this, target, mode); 2736 void hint(int target, int mode) => _blink.BlinkWebGLRenderingContext.hint_Call back_2(this, target, mode);
2737 2737
2738 @DomName('WebGLRenderingContext.isBuffer') 2738 @DomName('WebGLRenderingContext.isBuffer')
2739 @DocsEditable() 2739 @DocsEditable()
2740 bool isBuffer(Buffer buffer) => _blink.BlinkWebGLRenderingContext.isBuffer_Cal lback_1(this, buffer); 2740 bool isBuffer(Buffer buffer) => _blink.BlinkWebGLRenderingContext.isBuffer_Cal lback_1(this, buffer);
2741 2741
2742 @DomName('WebGLRenderingContext.isContextLost') 2742 @DomName('WebGLRenderingContext.isContextLost')
2743 @DocsEditable() 2743 @DocsEditable()
2744 bool isContextLost() => _blink.BlinkWebGLRenderingContext.isContextLost_Callba ck(this); 2744 bool isContextLost() => _blink.BlinkWebGLRenderingContext.isContextLost_Callba ck_0(this);
2745 2745
2746 @DomName('WebGLRenderingContext.isEnabled') 2746 @DomName('WebGLRenderingContext.isEnabled')
2747 @DocsEditable() 2747 @DocsEditable()
2748 bool isEnabled(int cap) => _blink.BlinkWebGLRenderingContext.isEnabled_Callbac k_1(this, cap); 2748 bool isEnabled(int cap) => _blink.BlinkWebGLRenderingContext.isEnabled_Callbac k_1(this, cap);
2749 2749
2750 @DomName('WebGLRenderingContext.isFramebuffer') 2750 @DomName('WebGLRenderingContext.isFramebuffer')
2751 @DocsEditable() 2751 @DocsEditable()
2752 bool isFramebuffer(Framebuffer framebuffer) => _blink.BlinkWebGLRenderingConte xt.isFramebuffer_Callback_1(this, framebuffer); 2752 bool isFramebuffer(Framebuffer framebuffer) => _blink.BlinkWebGLRenderingConte xt.isFramebuffer_Callback_1(this, framebuffer);
2753 2753
2754 @DomName('WebGLRenderingContext.isProgram') 2754 @DomName('WebGLRenderingContext.isProgram')
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
3192 3192
3193 3193
3194 @DocsEditable() 3194 @DocsEditable()
3195 @DomName('WebGLRenderingContextBase') 3195 @DomName('WebGLRenderingContextBase')
3196 @Experimental() // untriaged 3196 @Experimental() // untriaged
3197 abstract class _WebGLRenderingContextBase extends NativeFieldWrapperClass2 { 3197 abstract class _WebGLRenderingContextBase extends NativeFieldWrapperClass2 {
3198 // To suppress missing implicit constructor warnings. 3198 // To suppress missing implicit constructor warnings.
3199 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); } 3199 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); }
3200 3200
3201 } 3201 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698