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

Unified Diff: ui/base/ime/input_method_ibus.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 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 | « ui/base/ime/input_method_ibus.h ('k') | ui/base/ime/input_method_ibus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_ibus.cc
diff --git a/ui/base/ime/input_method_ibus.cc b/ui/base/ime/input_method_ibus.cc
index 0064ce3ce6ac4b92c56ad5a5e95ef438a73f5279..7a4cffe045a5fd66775448b5b0d5df6318566cf0 100644
--- a/ui/base/ime/input_method_ibus.cc
+++ b/ui/base/ime/input_method_ibus.cc
@@ -275,14 +275,14 @@ void InputMethodIBus::OnCaretBoundsChanged(const TextInputClient* client) {
GfxRectToIBusRect(rect),
GfxRectToIBusRect(composition_head));
- ui::Range text_range;
- ui::Range selection_range;
+ gfx::Range text_range;
+ gfx::Range selection_range;
string16 surrounding_text;
if (!GetTextInputClient()->GetTextRange(&text_range) ||
!GetTextInputClient()->GetTextFromRange(text_range, &surrounding_text) ||
!GetTextInputClient()->GetSelectionRange(&selection_range)) {
previous_surrounding_text_.clear();
- previous_selection_range_ = ui::Range::InvalidRange();
+ previous_selection_range_ = gfx::Range::InvalidRange();
return;
}
@@ -901,7 +901,7 @@ void InputMethodIBus::ExtractCompositionText(
size_t cursor_offset =
char16_offsets[std::min(char_length, cursor_position)];
- out_composition->selection = Range(cursor_offset);
+ out_composition->selection = gfx::Range(cursor_offset);
const std::vector<chromeos::IBusText::UnderlineAttribute>&
underline_attributes = text.underline_attributes();
« no previous file with comments | « ui/base/ime/input_method_ibus.h ('k') | ui/base/ime/input_method_ibus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698