From 7cf1b6ced3b14cce1d66ca0ddc713851f0d37536 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Sat, 20 Mar 2010 06:37:01 +0000 Subject: Move RTL related functions from app/l10n_util to base/i18n/rtl TBR=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/1073005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42182 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/textfield/native_textfield_win.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'views/controls/textfield/native_textfield_win.cc') diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc index 9f2392f..f66b949 100644 --- a/views/controls/textfield/native_textfield_win.cc +++ b/views/controls/textfield/native_textfield_win.cc @@ -11,6 +11,7 @@ #include "app/l10n_util.h" #include "app/l10n_util_win.h" #include "app/win_util.h" +#include "base/i18n/rtl.h" #include "base/keyboard_codes.h" #include "base/string_util.h" #include "base/win_util.h" @@ -131,7 +132,7 @@ void NativeTextfieldWin::UpdateText() { // Adjusting the string direction before setting the text in order to make // sure both RTL and LTR strings are displayed properly. std::wstring text_to_set; - if (!l10n_util::AdjustStringForLocaleDirection(text, &text_to_set)) + if (!base::i18n::AdjustStringForLocaleDirection(text, &text_to_set)) text_to_set = text; if (textfield_->style() & Textfield::STYLE_LOWERCASE) text_to_set = l10n_util::ToLower(text_to_set); @@ -808,7 +809,7 @@ LONG NativeTextfieldWin::ClipXCoordToVisibleText(LONG x, // paragraph. bool ltr_text_in_ltr_layout = true; if ((pf2.wEffects & PFE_RTLPARA) || - l10n_util::StringContainsStrongRTLChars(GetText())) { + base::i18n::StringContainsStrongRTLChars(GetText())) { ltr_text_in_ltr_layout = false; } const int length = GetTextLength(); -- cgit v1.1