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

Unified Diff: Source/WebCore/html/canvas/WebGLRenderingContext.idl

Issue 9231022: WebGL support. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Review feedback. Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/canvas/WebGLRenderingContext.idl
diff --git a/Source/WebCore/html/canvas/WebGLRenderingContext.idl b/Source/WebCore/html/canvas/WebGLRenderingContext.idl
index 5103af01a080f3fcdc5d7dad2d1cf308d483bc7f..211942955ef2378406bb32d37ba853386a61e1f6 100644
--- a/Source/WebCore/html/canvas/WebGLRenderingContext.idl
+++ b/Source/WebCore/html/canvas/WebGLRenderingContext.idl
@@ -523,17 +523,30 @@ module html {
[StrictTypeChecking] WebGLActiveInfo getActiveAttrib(in WebGLProgram program, in unsigned long index) raises (DOMException);
[StrictTypeChecking] WebGLActiveInfo getActiveUniform(in WebGLProgram program, in unsigned long index) raises (DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any[] getAttachedShaders(in WebGLProgram program) raises (DOMException);
+#else
[StrictTypeChecking, Custom] void getAttachedShaders(in WebGLProgram program) raises (DOMException);
-
+#endif
[StrictTypeChecking] int getAttribLocation(in WebGLProgram program, in DOMString name);
- // any getBufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+ // any getBufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getBufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+#else
[StrictTypeChecking, Custom] void getBufferParameter();
+#endif
[StrictTypeChecking] WebGLContextAttributes getContextAttributes();
[StrictTypeChecking] unsigned long getError();
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getExtension(in DOMString name);
+ [StrictTypeChecking, Custom] any getParameter(in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getFramebufferAttachmentParameter(in unsigned long target, in unsigned long attachment, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getProgramParameter(in WebGLProgram program, in unsigned long pname) raises(DOMException);
+#else
// object getExtension(in DOMString name);
[StrictTypeChecking, Custom] void getExtension(in DOMString name);
@@ -543,11 +556,17 @@ module html {
[StrictTypeChecking, Custom] void getParameter();
// any getProgramParameter(in WebGLProgram program, in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getProgramParameter();
+#endif
[StrictTypeChecking, ConvertNullStringTo=Null] DOMString getProgramInfoLog(in WebGLProgram program) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getRenderbufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getShaderParameter(in WebGLShader shader, in unsigned long pname) raises(DOMException);
+#else
// any getRenderbufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getRenderbufferParameter();
// any getShaderParameter(in WebGLShader shader, in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getShaderParameter() raises(DOMException);
+#endif
[StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderInfoLog(in WebGLShader shader) raises(DOMException);
@@ -556,6 +575,11 @@ module html {
[StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderSource(in WebGLShader shader) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] DOMString[] getSupportedExtensions();
+ [StrictTypeChecking, Custom] any getTexParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation location) raises(DOMException);
+#else
// DOMString[] getSupportedExtensions()
[StrictTypeChecking, Custom] void getSupportedExtensions();
@@ -564,11 +588,16 @@ module html {
// any getUniform(in WebGLProgram program, in WebGLUniformLocation location) raises(DOMException);
[StrictTypeChecking, Custom] void getUniform();
+#endif
[StrictTypeChecking] WebGLUniformLocation getUniformLocation(in WebGLProgram program, in DOMString name) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname) raises(DOMException);
+#else
// any getVertexAttrib(in unsigned long index, in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getVertexAttrib();
+#endif
[StrictTypeChecking] long getVertexAttribOffset(in unsigned long index, in unsigned long pname);
« Source/WebCore/html/canvas/Int32Array.idl ('K') | « Source/WebCore/html/canvas/Uint8Array.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698