| 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
|
| }
|
|
|