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

Unified Diff: views/controls/textfield/native_textfield_win.cc

Issue 1073005: Move RTL related functions from app/l10n_util to base/i18n/rtl... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/table/table_view.cc ('k') | views/controls/tree/tree_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_win.cc
===================================================================
--- views/controls/textfield/native_textfield_win.cc (revision 42180)
+++ views/controls/textfield/native_textfield_win.cc (working copy)
@@ -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 @@
// 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 @@
// 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();
« no previous file with comments | « views/controls/table/table_view.cc ('k') | views/controls/tree/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698