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

Unified Diff: app/win_util.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/text_elider_unittest.cc ('k') | base/base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/win_util.cc
===================================================================
--- app/win_util.cc (revision 42180)
+++ app/win_util.cc (working copy)
@@ -16,6 +16,7 @@
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/file_util.h"
+#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/native_library.h"
#include "base/registry.h"
@@ -519,17 +520,17 @@
return IDOK;
UINT actual_flags = flags;
- if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT)
+ if (base::i18n::IsRTL())
actual_flags |= MB_RIGHT | MB_RTLREADING;
std::wstring localized_text;
const wchar_t* text_ptr = text.c_str();
- if (l10n_util::AdjustStringForLocaleDirection(text, &localized_text))
+ if (base::i18n::AdjustStringForLocaleDirection(text, &localized_text))
text_ptr = localized_text.c_str();
std::wstring localized_caption;
const wchar_t* caption_ptr = caption.c_str();
- if (l10n_util::AdjustStringForLocaleDirection(caption, &localized_caption))
+ if (base::i18n::AdjustStringForLocaleDirection(caption, &localized_caption))
caption_ptr = localized_caption.c_str();
return ::MessageBox(hwnd, text_ptr, caption_ptr, actual_flags);
« no previous file with comments | « app/text_elider_unittest.cc ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698