| 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 #include "ui/base/l10n/l10n_util_android.h" | 5 #include "ui/base/l10n/l10n_util_android.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "jni/LocalizationUtils_jni.h" | 13 #include "jni/LocalizationUtils_jni.h" |
| 14 #include "third_party/icu/public/common/unicode/uloc.h" | 14 #include "third_party/icu/source/common/unicode/uloc.h" |
| 15 | 15 |
| 16 namespace l10n_util { | 16 namespace l10n_util { |
| 17 | 17 |
| 18 jboolean IsRTL(JNIEnv* env, jclass clazz) { | 18 jboolean IsRTL(JNIEnv* env, jclass clazz) { |
| 19 return base::i18n::IsRTL(); | 19 return base::i18n::IsRTL(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 jint GetFirstStrongCharacterDirection(JNIEnv* env, jclass clazz, | 22 jint GetFirstStrongCharacterDirection(JNIEnv* env, jclass clazz, |
| 23 jstring string) { | 23 jstring string) { |
| 24 return base::i18n::GetFirstStrongCharacterDirection( | 24 return base::i18n::GetFirstStrongCharacterDirection( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 java_locale.obj(), | 85 java_locale.obj(), |
| 86 java_display_locale.obj())); | 86 java_display_locale.obj())); |
| 87 return ConvertJavaStringToUTF16(java_result); | 87 return ConvertJavaStringToUTF16(java_result); |
| 88 } | 88 } |
| 89 | 89 |
| 90 bool RegisterLocalizationUtil(JNIEnv* env) { | 90 bool RegisterLocalizationUtil(JNIEnv* env) { |
| 91 return RegisterNativesImpl(env); | 91 return RegisterNativesImpl(env); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace l10n_util | 94 } // namespace l10n_util |
| OLD | NEW |