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

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

Issue 12212056: Sample test for custom elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 c64f11a30730523044b3d42b4c424b3a8aa0ceef..f2777b6f3ac702e97fa69b03e42f56327a17558e 100644
--- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
+++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
@@ -16,6 +16,17 @@ $!MEMBERS
document.$dom_body = value;
}
+ /**
+ * Registers a custom Element subclass as an available HTML tag.
+ *
+ * Not yet implemented.
+ */
+ @Experimental
+ void register(String tagName, Type elementClass) {
+ // TODO: tagName validation
+ throw new Exception('Not yet implemented');
+ }
+
@DomName('Document.caretRangeFromPoint')
Range caretRangeFromPoint(int x, int y) {
return document.$dom_caretRangeFromPoint(x, y);

Powered by Google App Engine
This is Rietveld 408576698