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

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

Issue 1348173002: Dartium JS Enabled take 2 (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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_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
}
+

Powered by Google App Engine
This is Rietveld 408576698