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

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

Issue 1002953005: Fix Notification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed formatting of the test Created 5 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698