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

Unified Diff: trunk/src/ui/views/controls/textfield/native_textfield_views.cc

Issue 23710009: Revert 219673 "Fix Views Combobox and Tree View text input." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/ui/views/controls/textfield/native_textfield_views.cc
===================================================================
--- trunk/src/ui/views/controls/textfield/native_textfield_views.cc (revision 220120)
+++ trunk/src/ui/views/controls/textfield/native_textfield_views.cc (working copy)
@@ -680,6 +680,7 @@
GetRenderText()->set_focused(true);
is_cursor_visible_ = true;
SchedulePaint();
+ GetInputMethod()->OnFocus();
OnCaretBoundsChanged();
// Start blinking cursor.
base::MessageLoop::current()->PostDelayedTask(
@@ -691,6 +692,7 @@
void NativeTextfieldViews::HandleBlur() {
GetRenderText()->set_focused(false);
+ GetInputMethod()->OnBlur();
// Stop blinking cursor.
cursor_timer_.InvalidateWeakPtrs();
if (is_cursor_visible_) {
« no previous file with comments | « trunk/src/ui/views/controls/combobox/native_combobox_views_unittest.cc ('k') | trunk/src/ui/views/controls/tree/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698