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

Unified Diff: views/controls/textfield/textfield_views_model.cc

Issue 7511029: Implement Pango RenderText for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: add dcheck and todo Created 9 years, 4 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
« ui/gfx/render_text_linux.cc ('K') | « ui/ui.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/textfield_views_model.cc
===================================================================
--- views/controls/textfield/textfield_views_model.cc (revision 97884)
+++ views/controls/textfield/textfield_views_model.cc (working copy)
@@ -611,10 +611,10 @@
void TextfieldViewsModel::CancelCompositionText() {
DCHECK(HasCompositionText());
ui::Range range = render_text_->GetCompositionRange();
+ ClearComposition();
msw 2011/08/29 20:38:05 Why did you make this change? I have a vague feeli
xji 2011/08/30 00:39:41 Inside SetCursorPosition(), we will need to get th
msw 2011/08/30 01:17:07 OK.
xji 2011/08/31 19:01:06 From suzhe "The caller should make sure that the c
string16 new_text = GetText();
render_text_->SetText(new_text.erase(range.start(), range.length()));
render_text_->SetCursorPosition(range.start());
- ClearComposition();
if (delegate_)
delegate_->OnCompositionTextConfirmedOrCleared();
}
« ui/gfx/render_text_linux.cc ('K') | « ui/ui.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698