summaryrefslogtreecommitdiffstats
path: root/views/controls/native_control_win.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 23:15:21 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 23:15:21 +0000
commitc2f4bdb7deec2fe9aaa3583ff2066e634001be8f (patch)
treee1ba425190c39667910ff1c864bdee6afc4bd191 /views/controls/native_control_win.cc
parent6e76d8d105739f3b40274dd0247a75ea44e46a89 (diff)
downloadchromium_src-c2f4bdb7deec2fe9aaa3583ff2066e634001be8f.zip
chromium_src-c2f4bdb7deec2fe9aaa3583ff2066e634001be8f.tar.gz
chromium_src-c2f4bdb7deec2fe9aaa3583ff2066e634001be8f.tar.bz2
Eliminate View::UILayoutIsRightToLeft() to standardize on base::i18n::IsRTL(). Was only needed for EnableUIMirroringForRTLLanguages(), which was only used by Views::Label, which already had this capability via set_rtl_alignment_mode().
BUG=none TEST=none Review URL: http://codereview.chromium.org/1991002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/native_control_win.cc')
-rw-r--r--views/controls/native_control_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/native_control_win.cc b/views/controls/native_control_win.cc
index baa5a19..c73d17c 100644
--- a/views/controls/native_control_win.cc
+++ b/views/controls/native_control_win.cc
@@ -134,7 +134,7 @@ DWORD NativeControlWin::GetAdditionalExStyle() const {
// extended window style for a right-to-left layout so the subclass creates
// a mirrored HWND for the underlying control.
DWORD ex_style = 0;
- if (UILayoutIsRightToLeft())
+ if (base::i18n::IsRTL())
ex_style |= l10n_util::GetExtendedStyles();
return ex_style;
@@ -145,7 +145,7 @@ DWORD NativeControlWin::GetAdditionalRTLStyle() const {
// extended window style for a right-to-left layout so the subclass creates
// a mirrored HWND for the underlying control.
DWORD ex_style = 0;
- if (UILayoutIsRightToLeft())
+ if (base::i18n::IsRTL())
ex_style |= l10n_util::GetExtendedTooltipStyles();
return ex_style;