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

Side by Side Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 35863006: Fix for getContextAttributes which wraps bare dictionary into a Dart type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 /** 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:collection'; 6 import 'dart:collection';
7 import 'dart:_collection-dev' hide deprecated; 7 import 'dart:_collection-dev' hide deprecated;
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:html_common'; 9 import 'dart:html_common';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 2392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 int getAttribLocation(Program program, String name) native; 2403 int getAttribLocation(Program program, String name) native;
2404 2404
2405 @DomName('WebGLRenderingContext.getBufferParameter') 2405 @DomName('WebGLRenderingContext.getBufferParameter')
2406 @DocsEditable() 2406 @DocsEditable()
2407 @Creates('int|Null') 2407 @Creates('int|Null')
2408 @Returns('int|Null') 2408 @Returns('int|Null')
2409 Object getBufferParameter(int target, int pname) native; 2409 Object getBufferParameter(int target, int pname) native;
2410 2410
2411 @DomName('WebGLRenderingContext.getContextAttributes') 2411 @DomName('WebGLRenderingContext.getContextAttributes')
2412 @DocsEditable() 2412 @DocsEditable()
2413 ContextAttributes getContextAttributes() native; 2413 @Creates('ContextAttributes|=Object')
2414 ContextAttributes getContextAttributes() {
2415 return convertNativeToDart_ContextAttributes(_getContextAttributes_1());
2416 }
2417 @JSName('getContextAttributes')
2418 @DomName('WebGLRenderingContext.getContextAttributes')
2419 @DocsEditable()
2420 @Creates('ContextAttributes|=Object')
2421 _getContextAttributes_1() native;
2414 2422
2415 @DomName('WebGLRenderingContext.getError') 2423 @DomName('WebGLRenderingContext.getError')
2416 @DocsEditable() 2424 @DocsEditable()
2417 int getError() native; 2425 int getError() native;
2418 2426
2419 @DomName('WebGLRenderingContext.getExtension') 2427 @DomName('WebGLRenderingContext.getExtension')
2420 @DocsEditable() 2428 @DocsEditable()
2421 Object getExtension(String name) native; 2429 Object getExtension(String name) native;
2422 2430
2423 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') 2431 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 2893
2886 2894
2887 @DocsEditable() 2895 @DocsEditable()
2888 @DomName('WebGLVertexArrayObjectOES') 2896 @DomName('WebGLVertexArrayObjectOES')
2889 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2897 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2890 @Experimental() // experimental 2898 @Experimental() // experimental
2891 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { 2899 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" {
2892 // To suppress missing implicit constructor warnings. 2900 // To suppress missing implicit constructor warnings.
2893 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } 2901 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
2894 } 2902 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698