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

Unified Diff: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate

Issue 22642002: 'extends Element' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
index a75d1fc303581ebf5ccad93796fbf35cb9074e4c..3788797bb7c4cd5611af1034712c19f4eecf8228 100644
--- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
+++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
@@ -168,6 +168,14 @@ $endif
$if DART2JS
+ void register(String tag, Type customElementClass) {
+ registerCustomElement(JS('', 'window'), this, tag, customElementClass);
+ }
+$else
+$endif
+
+
+$if DART2JS
@Creates('Null') // Set from Dart code; does not instantiate a native type.
$endif
// Note: used to polyfill <template>

Powered by Google App Engine
This is Rietveld 408576698