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

Unified Diff: app/l10n_util_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 | « app/l10n_util_unittest.cc ('k') | app/resource_bundle_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/l10n_util_win.cc
===================================================================
--- app/l10n_util_win.cc (revision 42180)
+++ app/l10n_util_win.cc (working copy)
@@ -3,11 +3,12 @@
// found in the LICENSE file.
#include "app/l10n_util.h"
-#include "app/l10n_util_win.h"
#include <algorithm>
#include <windowsx.h>
+#include "app/l10n_util_win.h"
+#include "base/i18n/rtl.h"
#include "base/string_util.h"
#include "base/win_util.h"
@@ -39,12 +40,11 @@
namespace l10n_util {
int GetExtendedStyles() {
- return GetTextDirection() == LEFT_TO_RIGHT ? 0 :
- WS_EX_LAYOUTRTL | WS_EX_RTLREADING;
+ return !base::i18n::IsRTL() ? 0 : WS_EX_LAYOUTRTL | WS_EX_RTLREADING;
}
int GetExtendedTooltipStyles() {
- return GetTextDirection() == LEFT_TO_RIGHT ? 0 : WS_EX_LAYOUTRTL;
+ return !base::i18n::IsRTL() ? 0 : WS_EX_LAYOUTRTL;
}
void HWNDSetRTLLayout(HWND hwnd) {
« no previous file with comments | « app/l10n_util_unittest.cc ('k') | app/resource_bundle_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698