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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/custom_elements_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index e33d421417b5c54dbd7df861804c9c92101fb578..fcc0041d96512ce77446d3a0041adbfcb95f758a 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -8822,6 +8822,12 @@ abstract class Element extends Node implements ElementTraversal native "*Element
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
@@ -12549,6 +12555,17 @@ class HtmlDocument extends Document native "*HTMLDocument" {
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);
@@ -26063,7 +26080,7 @@ class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" {
@DocsEditable
@DomName('WebKitTransitionEvent')
-class WebKitTransitionEvent extends Event native "*WebKitTransitionEvent" {
+class WebKitTransitionEvent implements TransitionEvent native "*WebKitTransitionEvent" {
@DomName('WebKitTransitionEvent.elapsedTime')
@DocsEditable
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tests/html/custom_elements_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698