summaryrefslogtreecommitdiffstats
path: root/views/controls/message_box_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-20 06:37:01 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-20 06:37:01 +0000
commit7cf1b6ced3b14cce1d66ca0ddc713851f0d37536 (patch)
tree1c2fc9f4d52bf3046addf820d5eec03a2e150749 /views/controls/message_box_view.cc
parentf9f4841b14a9f309ce5ee613f0d4de6afad88767 (diff)
downloadchromium_src-7cf1b6ced3b14cce1d66ca0ddc713851f0d37536.zip
chromium_src-7cf1b6ced3b14cce1d66ca0ddc713851f0d37536.tar.gz
chromium_src-7cf1b6ced3b14cce1d66ca0ddc713851f0d37536.tar.bz2
Move RTL related functions from app/l10n_util to base/i18n/rtl
TBR=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/1073005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/message_box_view.cc')
-rw-r--r--views/controls/message_box_view.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/controls/message_box_view.cc b/views/controls/message_box_view.cc
index c5d8882..756919a 100644
--- a/views/controls/message_box_view.cc
+++ b/views/controls/message_box_view.cc
@@ -6,8 +6,8 @@
#include "app/clipboard/clipboard.h"
#include "app/clipboard/scoped_clipboard_writer.h"
-#include "app/l10n_util.h"
#include "app/message_box_flags.h"
+#include "base/i18n/rtl.h"
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "views/controls/button/checkbox.h"
@@ -120,10 +120,10 @@ void MessageBoxView::Init(int dialog_flags,
if (dialog_flags & MessageBoxFlags::kAutoDetectAlignment) {
// Determine the alignment and directionality based on the first character
// with strong directionality.
- l10n_util::TextDirection direction =
- l10n_util::GetFirstStrongCharacterDirection(message_label_->GetText());
+ base::i18n::TextDirection direction =
+ base::i18n::GetFirstStrongCharacterDirection(message_label_->GetText());
views::Label::Alignment alignment;
- if (direction == l10n_util::RIGHT_TO_LEFT)
+ if (direction == base::i18n::RIGHT_TO_LEFT)
alignment = views::Label::ALIGN_RIGHT;
else
alignment = views::Label::ALIGN_LEFT;