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

Unified 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, 2 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: 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 747c6860094fc8d3e9a7be6e1ed8f7964fe7ab10..dd853fbda08a49001a025fc19bcb391425e2f8ff 100644
--- a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
+++ b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
@@ -2410,7 +2410,15 @@ class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
@DomName('WebGLRenderingContext.getContextAttributes')
@DocsEditable()
- ContextAttributes getContextAttributes() native;
+ @Creates('ContextAttributes|=Object')
+ ContextAttributes getContextAttributes() {
+ return convertNativeToDart_ContextAttributes(_getContextAttributes_1());
+ }
+ @JSName('getContextAttributes')
+ @DomName('WebGLRenderingContext.getContextAttributes')
+ @DocsEditable()
+ @Creates('ContextAttributes|=Object')
+ _getContextAttributes_1() native;
@DomName('WebGLRenderingContext.getError')
@DocsEditable()

Powered by Google App Engine
This is Rietveld 408576698