diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-10 23:15:21 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-10 23:15:21 +0000 |
commit | c2f4bdb7deec2fe9aaa3583ff2066e634001be8f (patch) | |
tree | e1ba425190c39667910ff1c864bdee6afc4bd191 /views/controls/table | |
parent | 6e76d8d105739f3b40274dd0247a75ea44e46a89 (diff) | |
download | chromium_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/table')
-rw-r--r-- | views/controls/table/native_table_win.cc | 2 | ||||
-rw-r--r-- | views/controls/table/table_view.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/views/controls/table/native_table_win.cc b/views/controls/table/native_table_win.cc index 22ca250..d34856f 100644 --- a/views/controls/table/native_table_win.cc +++ b/views/controls/table/native_table_win.cc @@ -670,7 +670,7 @@ LRESULT CALLBACK NativeTableWin::TableWndProc(HWND window, // // As a work around this uses the position of the cursor and ignores // the position supplied in the l_param. - if (table->UILayoutIsRightToLeft() && + if (base::i18n::IsRTL() && (GET_X_LPARAM(l_param) != -1 || GET_Y_LPARAM(l_param) != -1)) { POINT screen_point; GetCursorPos(&screen_point); diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc index c1d07d9..b165ba4 100644 --- a/views/controls/table/table_view.cc +++ b/views/controls/table/table_view.cc @@ -493,7 +493,7 @@ gfx::Point TableView::GetKeyboardContextMenuLocation() { } } gfx::Point screen_loc(0, y); - if (UILayoutIsRightToLeft()) + if (base::i18n::IsRTL()) screen_loc.set_x(width()); ConvertPointToScreen(this, &screen_loc); return screen_loc; @@ -538,7 +538,7 @@ LRESULT CALLBACK TableView::TableWndProc(HWND window, // // As a work around this uses the position of the cursor and ignores // the position supplied in the l_param. - if (table_view->UILayoutIsRightToLeft() && + if (base::i18n::IsRTL() && (GET_X_LPARAM(l_param) != -1 || GET_Y_LPARAM(l_param) != -1)) { POINT screen_point; GetCursorPos(&screen_point); |