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

Unified Diff: sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate

Issue 11358135: Some changes to improve precision of types in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate b/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate
index 7d9d2bf641df249a2bae9fbae72e51bd3f115399..dba7b013c82ec2119965dded65720e4e2ba6c528 100644
--- a/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate
@@ -5,5 +5,8 @@
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
+$if DART2JS
+ CanvasRenderingContext getContext(String contextId) native;
+$endif
CanvasRenderingContext2D get context2d => getContext('2d');
}

Powered by Google App Engine
This is Rietveld 408576698