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

Unified Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 15773008: Exposing DOM float & double types as double rather than num. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
diff --git a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
index ae64061a5315222c4ee09219f2116ff40c038f95..b06595fd9bbf67a55004d73d884d4dfe87dc42a6 100644
--- a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
+++ b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
@@ -2060,7 +2060,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.blendColor')
@DocsEditable
- void blendColor(num red, num green, num blue, num alpha) native;
+ void blendColor(double red, double green, double blue, double alpha) native;
@DomName('WebGLRenderingContext.blendEquation')
@DocsEditable
@@ -2096,11 +2096,11 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.clearColor')
@DocsEditable
- void clearColor(num red, num green, num blue, num alpha) native;
+ void clearColor(double red, double green, double blue, double alpha) native;
@DomName('WebGLRenderingContext.clearDepth')
@DocsEditable
- void clearDepth(num depth) native;
+ void clearDepth(double depth) native;
@DomName('WebGLRenderingContext.clearStencil')
@DocsEditable
@@ -2192,7 +2192,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.depthRange')
@DocsEditable
- void depthRange(num zNear, num zFar) native;
+ void depthRange(double zNear, double zFar) native;
@DomName('WebGLRenderingContext.detachShader')
@DocsEditable
@@ -2378,7 +2378,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.lineWidth')
@DocsEditable
- void lineWidth(num width) native;
+ void lineWidth(double width) native;
@DomName('WebGLRenderingContext.linkProgram')
@DocsEditable
@@ -2390,7 +2390,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.polygonOffset')
@DocsEditable
- void polygonOffset(num factor, num units) native;
+ void polygonOffset(double factor, double units) native;
@DomName('WebGLRenderingContext.readPixels')
@DocsEditable
@@ -2402,7 +2402,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.sampleCoverage')
@DocsEditable
- void sampleCoverage(num value, bool invert) native;
+ void sampleCoverage(double value, bool invert) native;
@DomName('WebGLRenderingContext.scissor')
@DocsEditable
@@ -2485,7 +2485,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.texParameterf')
@DocsEditable
- void texParameterf(int target, int pname, num param) native;
+ void texParameterf(int target, int pname, double param) native;
@DomName('WebGLRenderingContext.texParameteri')
@DocsEditable
@@ -2540,7 +2540,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.uniform1f')
@DocsEditable
- void uniform1f(UniformLocation location, num x) native;
+ void uniform1f(UniformLocation location, double x) native;
@DomName('WebGLRenderingContext.uniform1fv')
@DocsEditable
@@ -2556,7 +2556,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.uniform2f')
@DocsEditable
- void uniform2f(UniformLocation location, num x, num y) native;
+ void uniform2f(UniformLocation location, double x, double y) native;
@DomName('WebGLRenderingContext.uniform2fv')
@DocsEditable
@@ -2572,7 +2572,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.uniform3f')
@DocsEditable
- void uniform3f(UniformLocation location, num x, num y, num z) native;
+ void uniform3f(UniformLocation location, double x, double y, double z) native;
@DomName('WebGLRenderingContext.uniform3fv')
@DocsEditable
@@ -2588,7 +2588,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.uniform4f')
@DocsEditable
- void uniform4f(UniformLocation location, num x, num y, num z, num w) native;
+ void uniform4f(UniformLocation location, double x, double y, double z, double w) native;
@DomName('WebGLRenderingContext.uniform4fv')
@DocsEditable
@@ -2624,7 +2624,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.vertexAttrib1f')
@DocsEditable
- void vertexAttrib1f(int indx, num x) native;
+ void vertexAttrib1f(int indx, double x) native;
@DomName('WebGLRenderingContext.vertexAttrib1fv')
@DocsEditable
@@ -2632,7 +2632,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.vertexAttrib2f')
@DocsEditable
- void vertexAttrib2f(int indx, num x, num y) native;
+ void vertexAttrib2f(int indx, double x, double y) native;
@DomName('WebGLRenderingContext.vertexAttrib2fv')
@DocsEditable
@@ -2640,7 +2640,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.vertexAttrib3f')
@DocsEditable
- void vertexAttrib3f(int indx, num x, num y, num z) native;
+ void vertexAttrib3f(int indx, double x, double y, double z) native;
@DomName('WebGLRenderingContext.vertexAttrib3fv')
@DocsEditable
@@ -2648,7 +2648,7 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.vertexAttrib4f')
@DocsEditable
- void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
+ void vertexAttrib4f(int indx, double x, double y, double z, double w) native;
@DomName('WebGLRenderingContext.vertexAttrib4fv')
@DocsEditable
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698