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

Side by Side Diff: ui/base/l10n/l10n_util_android.h

Issue 628263004: [Android] Simplify logic for grabbing initial country-code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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. 17 // Return the current default locale of the device.
18 UI_BASE_EXPORT std::string GetDefaultLocale(); 18 UI_BASE_EXPORT std::string GetDefaultLocale();
sky 2014/10/08 03:08:03 I'm surprised the local and country code are ui re
Yaron 2014/10/09 18:09:19 Nope. Is base/i18n a better place?
jungshik at Google 2014/10/13 21:46:17 I like that better, too. A lot of stuffs in l10n_u
Yaron 2014/10/17 18:24:00 I ended up just moving to regular base as theres'
19 19
20 UI_BASE_EXPORT std::string GetDefaultCountryCode();
21
20 UI_BASE_EXPORT base::string16 GetDisplayNameForLocale( 22 UI_BASE_EXPORT base::string16 GetDisplayNameForLocale(
21 const std::string& locale, 23 const std::string& locale,
22 const std::string& display_locale); 24 const std::string& display_locale);
23 25
24 UI_BASE_EXPORT bool IsLayoutRtl(); 26 UI_BASE_EXPORT bool IsLayoutRtl();
25 27
26 UI_BASE_EXPORT bool RegisterLocalizationUtil(JNIEnv* env); 28 UI_BASE_EXPORT bool RegisterLocalizationUtil(JNIEnv* env);
27 29
28 } // namespace l10n_util 30 } // namespace l10n_util
29 31
30 #endif // UI_BASE_L10N_L10N_UTIL_ANDROID_H_ 32 #endif // UI_BASE_L10N_L10N_UTIL_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/LocalizationUtils.java ('k') | ui/base/l10n/l10n_util_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698