diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-16 20:06:24 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-16 20:06:24 +0000 |
commit | 4cb2a5c29732c0a047393b31e8f60562e07ceb04 (patch) | |
tree | 847cd2ddf6a79dbb0b2648b0caf0e7f32757c2e7 /views | |
parent | abcc9ac80e3ca63efd2ebeb18954f79f56204e88 (diff) | |
download | chromium_src-4cb2a5c29732c0a047393b31e8f60562e07ceb04.zip chromium_src-4cb2a5c29732c0a047393b31e8f60562e07ceb04.tar.gz chromium_src-4cb2a5c29732c0a047393b31e8f60562e07ceb04.tar.bz2 |
base/i18n: Put break_iterator* into namespace i18n.
BUG=None
TEST=None
R=brettw@chromium.org
Review URL: http://codereview.chromium.org/7034012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/textfield/textfield_views_model.cc | 4 | ||||
-rw-r--r-- | views/view_text_utils.cc | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/views/controls/textfield/textfield_views_model.cc b/views/controls/textfield/textfield_views_model.cc index c0f6458..50d9662 100644 --- a/views/controls/textfield/textfield_views_model.cc +++ b/views/controls/textfield/textfield_views_model.cc @@ -431,7 +431,7 @@ void TextfieldViewsModel::MoveCursorToPreviousWord(bool select) { // This is probably fast enough for our usage, but we may // want to modify WordIterator so that it can start from the // middle of string and advance backwards. - base::BreakIterator iter(&text_, base::BreakIterator::BREAK_WORD); + base::i18n::BreakIterator iter(&text_, base::i18n::BreakIterator::BREAK_WORD); bool success = iter.Init(); DCHECK(success); if (!success) @@ -463,7 +463,7 @@ void TextfieldViewsModel::MoveCursorToPreviousWord(bool select) { void TextfieldViewsModel::MoveCursorToNextWord(bool select) { if (HasCompositionText()) ConfirmCompositionText(); - base::BreakIterator iter(&text_, base::BreakIterator::BREAK_WORD); + base::i18n::BreakIterator iter(&text_, base::i18n::BreakIterator::BREAK_WORD); bool success = iter.Init(); DCHECK(success); if (!success) diff --git a/views/view_text_utils.cc b/views/view_text_utils.cc index d221e19..025ecdd 100644 --- a/views/view_text_utils.cc +++ b/views/view_text_utils.cc @@ -98,7 +98,8 @@ void DrawTextStartingFrom(gfx::Canvas* canvas, // Iterate through line breaking opportunities (which in English would be // spaces and such). This tells us where to wrap. string16 text16(WideToUTF16(text)); - base::BreakIterator iter(&text16, base::BreakIterator::BREAK_SPACE); + base::i18n::BreakIterator iter(&text16, + base::i18n::BreakIterator::BREAK_SPACE); if (!iter.Init()) return; |