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

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

Issue 1235903003: Turn on JS interop usage for DOM Dart libraries (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Merged Created 5 years, 5 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
OLDNEW
1 /** 1 /**
2 * 3D programming in the browser. 2 * 3D programming in the browser.
3 */ 3 */
4 library dart.dom.web_gl; 4 library dart.dom.web_gl;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_internal' hide deprecated; 8 import 'dart:_internal' hide deprecated;
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:html_common'; 10 import 'dart:html_common';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'WebGLRenderingContext': () => RenderingContext, 51 'WebGLRenderingContext': () => RenderingContext,
52 'WebGLRenderingContextBase': () => _WebGLRenderingContextBase, 52 'WebGLRenderingContextBase': () => _WebGLRenderingContextBase,
53 'WebGLShader': () => Shader, 53 'WebGLShader': () => Shader,
54 'WebGLShaderPrecisionFormat': () => ShaderPrecisionFormat, 54 'WebGLShaderPrecisionFormat': () => ShaderPrecisionFormat,
55 'WebGLTexture': () => Texture, 55 'WebGLTexture': () => Texture,
56 'WebGLUniformLocation': () => UniformLocation, 56 'WebGLUniformLocation': () => UniformLocation,
57 'WebGLVertexArrayObjectOES': () => VertexArrayObject, 57 'WebGLVertexArrayObjectOES': () => VertexArrayObject,
58 58
59 }; 59 };
60 60
61 // FIXME: Can we make this private?
62 final web_glBlinkFunctionMap = {
63 'ANGLEInstancedArrays': () => AngleInstancedArrays.internalCreateAngleInstance dArrays,
64 'EXTBlendMinMax': () => ExtBlendMinMax.internalCreateExtBlendMinMax,
65 'EXTFragDepth': () => ExtFragDepth.internalCreateExtFragDepth,
66 'EXTShaderTextureLOD': () => ExtShaderTextureLod.internalCreateExtShaderTextur eLod,
67 'EXTTextureFilterAnisotropic': () => ExtTextureFilterAnisotropic.internalCreat eExtTextureFilterAnisotropic,
68 'OESElementIndexUint': () => OesElementIndexUint.internalCreateOesElementIndex Uint,
69 'OESStandardDerivatives': () => OesStandardDerivatives.internalCreateOesStanda rdDerivatives,
70 'OESTextureFloat': () => OesTextureFloat.internalCreateOesTextureFloat,
71 'OESTextureFloatLinear': () => OesTextureFloatLinear.internalCreateOesTextureF loatLinear,
72 'OESTextureHalfFloat': () => OesTextureHalfFloat.internalCreateOesTextureHalfF loat,
73 'OESTextureHalfFloatLinear': () => OesTextureHalfFloatLinear.internalCreateOes TextureHalfFloatLinear,
74 'OESVertexArrayObject': () => OesVertexArrayObject.internalCreateOesVertexArra yObject,
75 'WebGLActiveInfo': () => ActiveInfo.internalCreateActiveInfo,
76 'WebGLBuffer': () => Buffer.internalCreateBuffer,
77 'WebGLCompressedTextureATC': () => CompressedTextureAtc.internalCreateCompress edTextureAtc,
78 'WebGLCompressedTextureETC1': () => CompressedTextureETC1.internalCreateCompre ssedTextureETC1,
79 'WebGLCompressedTexturePVRTC': () => CompressedTexturePvrtc.internalCreateComp ressedTexturePvrtc,
80 'WebGLCompressedTextureS3TC': () => CompressedTextureS3TC.internalCreateCompre ssedTextureS3TC,
81 'WebGLContextAttributes': () => ContextAttributes.internalCreateContextAttribu tes,
82 'WebGLContextEvent': () => ContextEvent.internalCreateContextEvent,
83 'WebGLDebugRendererInfo': () => DebugRendererInfo.internalCreateDebugRendererI nfo,
84 'WebGLDebugShaders': () => DebugShaders.internalCreateDebugShaders,
85 'WebGLDepthTexture': () => DepthTexture.internalCreateDepthTexture,
86 'WebGLDrawBuffers': () => DrawBuffers.internalCreateDrawBuffers,
87 'WebGLFramebuffer': () => Framebuffer.internalCreateFramebuffer,
88 'WebGLLoseContext': () => LoseContext.internalCreateLoseContext,
89 'WebGLProgram': () => Program.internalCreateProgram,
90 'WebGLRenderbuffer': () => Renderbuffer.internalCreateRenderbuffer,
91 'WebGLRenderingContext': () => RenderingContext.internalCreateRenderingContext ,
92 'WebGLRenderingContextBase': () => _WebGLRenderingContextBase.internalCreate_W ebGLRenderingContextBase,
93 'WebGLShader': () => Shader.internalCreateShader,
94 'WebGLShaderPrecisionFormat': () => ShaderPrecisionFormat.internalCreateShader PrecisionFormat,
95 'WebGLTexture': () => Texture.internalCreateTexture,
96 'WebGLUniformLocation': () => UniformLocation.internalCreateUniformLocation,
97 'WebGLVertexArrayObjectOES': () => VertexArrayObject.internalCreateVertexArray Object,
98
99 };
61 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 100 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
62 // for details. All rights reserved. Use of this source code is governed by a 101 // for details. All rights reserved. Use of this source code is governed by a
63 // BSD-style license that can be found in the LICENSE file. 102 // BSD-style license that can be found in the LICENSE file.
64 103
65 104
66 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES; 105 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES;
67 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE; 106 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE;
68 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS; 107 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS;
69 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE; 108 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE;
70 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE; 109 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE;
(...skipping 3613 matching lines...) Expand 10 before | Expand all | Expand 10 after
3684 3723
3685 factory _WebGLRenderingContextBase._internalWrap() { 3724 factory _WebGLRenderingContextBase._internalWrap() {
3686 return new _WebGLRenderingContextBase._internal(); 3725 return new _WebGLRenderingContextBase._internal();
3687 } 3726 }
3688 3727
3689 _WebGLRenderingContextBase._internal() { } 3728 _WebGLRenderingContextBase._internal() { }
3690 3729
3691 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 3730 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
3692 3731
3693 } 3732 }
OLDNEW
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | sdk/lib/web_sql/dartium/web_sql_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698