Index: tools/dom/templates/html/impl/impl_ServiceWorker.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Text.darttemplate b/tools/dom/templates/html/impl/impl_ServiceWorker.darttemplate |
similarity index 66% |
copy from tools/dom/templates/html/impl/impl_Text.darttemplate |
copy to tools/dom/templates/html/impl/impl_ServiceWorker.darttemplate |
index 8c530587802ab44536d2bac2c7d7e3eaa6b857d6..6cb64ab3ad1ad928fd763f04f48b6a51ba93373b 100644 |
--- a/tools/dom/templates/html/impl/impl_Text.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_ServiceWorker.darttemplate |
@@ -2,11 +2,14 @@ |
// 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. |
- |
part of $LIBRARYNAME; |
+@DocsEditable() |
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { |
- factory $CLASSNAME(String data) => document._createTextNode(data); |
$!MEMBERS |
+$if DARTIUM |
+ // Override these methods for Dartium _ServiceWorker can't be abstract. |
+ Stream<ErrorEvent> get onError => errorEvent.forTarget(this); |
+$endif |
} |
+ |