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

Unified Diff: tools/dom/templates/html/dart2js/impl_Notification.darttemplate

Issue 12474007: Revert 20127 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/dart2js/impl_Notification.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_EventSource.darttemplate b/tools/dom/templates/html/dart2js/impl_Notification.darttemplate
similarity index 53%
rename from tools/dom/templates/html/impl/impl_EventSource.darttemplate
rename to tools/dom/templates/html/dart2js/impl_Notification.darttemplate
index c75e292511f7dc2dbe308f4a0c09e7ffc4bbe295..ec9c3d3c542187cb2c4b1558b8710df34e6875d7 100644
--- a/tools/dom/templates/html/impl/impl_EventSource.darttemplate
+++ b/tools/dom/templates/html/dart2js/impl_Notification.darttemplate
@@ -5,11 +5,13 @@
part of $LIBRARYNAME;
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
- factory $CLASSNAME(String title, {withCredentials: false}) {
- var parsedOptions = {
- 'withCredentials': withCredentials,
- };
- return $CLASSNAME._factory$CLASSNAME(title, parsedOptions);
+ factory $CLASSNAME(String title, [Map options]) {
+ if (?options) {
+ return JS('Notification', 'new Notification(#,#)', title,
+ convertDartToNative_SerializedScriptValue(options));
+ } else {
+ return JS('Notification', 'new Notification(#)', title);
+ }
}
$!MEMBERS
}
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698