Changeset 71484 in webkit
- Timestamp:
- Nov 7, 2010 3:38:22 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/Android.mk
r71373 r71484 484 484 platform/android/GeolocationServiceBridge.cpp \ 485 485 platform/android/KeyEventAndroid.cpp \ 486 platform/android/LanguageAndroid.cpp \ 486 487 platform/android/LocalizedStringsAndroid.cpp \ 487 488 platform/android/PlatformTouchEventAndroid.cpp \ -
trunk/WebCore/ChangeLog
r71483 r71484 1 2010-11-07 John Reck <jreck@google.com> 2 3 Reviewed by Steve Block. 4 5 Implements navigator.language for Android 6 https://bugs.webkit.org/show_bug.cgi?id=49099 7 8 Android was previously hardcoding the value for WebCore::platformDefaultLanguage(). 9 This patch removes the hardcoding and calls into the PlatformBridge to get the 10 correct language based off of the user's settings. 11 12 No new tests needed, this is already covered 13 14 * Android.mk: 15 * platform/android/LanguageAndroid.cpp: Added. 16 (WebCore::platformDefaultLanguage): 17 * platform/android/PlatformBridge.h: 18 * platform/android/TemporaryLinkStubs.cpp: 19 1 20 2010-11-07 Robert Hogan <robert@webkit.org> 2 21 -
trunk/WebCore/platform/android/PlatformBridge.h
r53673 r71484 105 105 // Plugin 106 106 static NPObject* pluginScriptableObject(Widget*); 107 // Language 108 static String computeDefaultLanguage(); 107 109 }; 108 110 -
trunk/WebCore/platform/android/TemporaryLinkStubs.cpp
r71346 r71484 94 94 /********************************************************/ 95 95 96 // This function is used by Javascript to find out what the default language97 // the user has selected. It is used by the JS object Navigator.language98 // I guess this information should be mapped with the Accept-Language: HTTP header.99 String WebCore::defaultLanguage()100 {101 verifiedOk();102 return "en";103 }104 105 96 namespace WebCore { 106 97
Note: See TracChangeset
for help on using the changeset viewer.