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

Unified Diff: ui/base/ime/input_method_win.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_unittest.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_win.cc
diff --git a/ui/base/ime/input_method_win.cc b/ui/base/ime/input_method_win.cc
index 21c3d06131194542fdee32d0057a20b8128436f4..856c27df2bfedeb9d1d2f41878d9eb5ceff009cf 100644
--- a/ui/base/ime/input_method_win.cc
+++ b/ui/base/ime/input_method_win.cc
@@ -179,7 +179,7 @@ LRESULT InputMethodWin::OnDeadChar(UINT message,
// what dead key was pressed.
ui::CompositionText composition;
composition.text.assign(1, static_cast<char16>(wparam));
- composition.selection = ui::Range(0, 1);
+ composition.selection = gfx::Range(0, 1);
composition.underlines.push_back(
ui::CompositionUnderline(0, 1, SK_ColorBLACK, false));
GetTextInputClient()->SetCompositionText(composition);
@@ -191,12 +191,12 @@ LRESULT InputMethodWin::OnDocumentFeed(RECONVERTSTRING* reconv) {
if (!client)
return 0;
- ui::Range text_range;
+ gfx::Range text_range;
if (!client->GetTextRange(&text_range) || text_range.is_empty())
return 0;
bool result = false;
- ui::Range target_range;
+ gfx::Range target_range;
if (client->HasCompositionText())
result = client->GetCompositionTextRange(&target_range);
@@ -258,11 +258,11 @@ LRESULT InputMethodWin::OnReconvertString(RECONVERTSTRING* reconv) {
if (client->HasCompositionText())
return 0;
- ui::Range text_range;
+ gfx::Range text_range;
if (!client->GetTextRange(&text_range) || text_range.is_empty())
return 0;
- ui::Range selection_range;
+ gfx::Range selection_range;
if (!client->GetSelectionRange(&selection_range) ||
selection_range.is_empty()) {
return 0;
« no previous file with comments | « ui/base/ime/input_method_ibus_unittest.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698