OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_L10N_L10N_UTIL_ANDROID_H_ | 5 #ifndef UI_BASE_L10N_L10N_UTIL_ANDROID_H_ |
6 #define UI_BASE_L10N_L10N_UTIL_ANDROID_H_ | 6 #define UI_BASE_L10N_L10N_UTIL_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "ui/base/ui_base_export.h" | 13 #include "ui/base/ui_base_export.h" |
14 | 14 |
15 namespace l10n_util { | 15 namespace l10n_util { |
16 | 16 |
17 // Return the current default locale of the device. | |
18 UI_BASE_EXPORT std::string GetDefaultLocale(); | |
19 | |
20 UI_BASE_EXPORT base::string16 GetDisplayNameForLocale( | 17 UI_BASE_EXPORT base::string16 GetDisplayNameForLocale( |
21 const std::string& locale, | 18 const std::string& locale, |
22 const std::string& display_locale); | 19 const std::string& display_locale); |
23 | 20 |
24 UI_BASE_EXPORT bool IsLayoutRtl(); | 21 UI_BASE_EXPORT bool IsLayoutRtl(); |
25 | 22 |
26 UI_BASE_EXPORT bool RegisterLocalizationUtil(JNIEnv* env); | 23 UI_BASE_EXPORT bool RegisterLocalizationUtil(JNIEnv* env); |
27 | 24 |
28 } // namespace l10n_util | 25 } // namespace l10n_util |
29 | 26 |
30 #endif // UI_BASE_L10N_L10N_UTIL_ANDROID_H_ | 27 #endif // UI_BASE_L10N_L10N_UTIL_ANDROID_H_ |
OLD | NEW |