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

Unified Diff: sdk/lib/html/dartium/html_dartium.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
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..a94a1b8888cc95d326e5c2af2864d8ffbe87630e 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);
@@ -28660,12 +28677,10 @@ class WebKitNamedFlow extends EventTarget {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// WARNING: Do not edit - generated code.
-
@DocsEditable
@DomName('WebKitTransitionEvent')
-class WebKitTransitionEvent extends Event {
+class WebKitTransitionEvent implements TransitionEvent {
WebKitTransitionEvent.internal() : super.internal();
@DomName('WebKitTransitionEvent.elapsedTime')
@@ -28679,7 +28694,6 @@ class WebKitTransitionEvent extends Event {
@DomName('WebKitTransitionEvent.pseudoElement')
@DocsEditable
String get pseudoElement native "WebKitTransitionEvent_pseudoElement_Getter";
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a

Powered by Google App Engine
This is Rietveld 408576698