Index: tools/dom/templates/html/impl/impl_Notification.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Notification.darttemplate b/tools/dom/templates/html/impl/impl_Notification.darttemplate |
index 03efd634752563c97561a878057575398a24afa0..134f1806cf405d2d592f4fb629c3701f1a4cf106 100644 |
--- a/tools/dom/templates/html/impl/impl_Notification.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Notification.darttemplate |
@@ -6,17 +6,22 @@ part of $LIBRARYNAME; |
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { |
- factory $CLASSNAME(String title, {String titleDir: null, String body: null, |
- String bodyDir: null, String tag: null, String iconUrl: null}) { |
+ factory $CLASSNAME(String title, {String dir: null, String body: null, |
+ String lang: null, String tag: null, String icon: null}) { |
var parsedOptions = {}; |
- if (titleDir != null) parsedOptions['titleDir'] = titleDir; |
+ if (dir != null) parsedOptions['dir'] = dir; |
if (body != null) parsedOptions['body'] = body; |
- if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir; |
+ if (lang != null) parsedOptions['lang'] = lang; |
if (tag != null) parsedOptions['tag'] = tag; |
- if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl; |
- |
- return $CLASSNAME._factory$CLASSNAME(title, parsedOptions); |
+ if (icon != null) parsedOptions['icon'] = icon; |
+ var nativeOptions; |
+$if DART2JS |
+ nativeOptions = convertDartToNative_Dictionary(parsedOptions); |
+$else |
+ nativeOptions = parsedOptions; |
+$endif |
+ return $CLASSNAME._factory$CLASSNAME(title, nativeOptions); |
} |
$!MEMBERS |
} |