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

Unified Diff: sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate

Issue 11419294: Use language or userlanguage (IE) depending on what's defined in the browser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove parens from getter! Created 8 years 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 | « sdk/lib/html/scripts/systemhtml.py ('k') | tests/html/navigator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
diff --git a/sdk/lib/html/templates/dart2js_impl.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
similarity index 67%
copy from sdk/lib/html/templates/dart2js_impl.darttemplate
copy to sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
index 5c62c0e1b17fad38a846d13a910f39acc673abdb..9b7117f0c5f5b69bac111c63166432087442d0b3 100644
--- a/sdk/lib/html/templates/dart2js_impl.darttemplate
+++ b/sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
@@ -6,4 +6,9 @@ part of $LIBRARYNAME;
/// @domName $DOMNAME; @docsEditable true
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-$!MEMBERS}
+
+ /// @domName Navigator.language; @docsEditable true
+ String get language => JS('String', '#.language || #.userLanguage', this,
+ this);
+ $!MEMBERS
+}
« no previous file with comments | « sdk/lib/html/scripts/systemhtml.py ('k') | tests/html/navigator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698