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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index b5e82af86a71bcc2b997884742fd66c6ae5d288c..494d925d650ba2434513cbdaf9974e62a14162de 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -9635,6 +9635,12 @@ abstract class Element extends Node implements ElementTraversal {
return e is Element && !(e is UnknownElement);
}
+ /**
+ * Called by the DOM when this element has been instantiated.
+ */
+ @Experimental
+ void onCreated() {}
+
// Hooks to support custom WebComponents.
/**
* Experimental support for [web components][wc]. This field stores a
@@ -13477,6 +13483,17 @@ class HtmlDocument extends Document {
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