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

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

Issue 21751002: Fix IME on bookmark edit dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Propagate focus to InputMethod from NativeTextFieldViews 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.cc
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index 2ac35aac75cf0d252946fd1bde4f53c96478ebe9..9095188065c021b292a21e51154f89bb83d3df16 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -680,6 +680,7 @@ void NativeTextfieldViews::HandleFocus() {
GetRenderText()->set_focused(true);
is_cursor_visible_ = true;
SchedulePaint();
+ GetInputMethod()->OnFocus();
OnCaretBoundsChanged();
// Start blinking cursor.
base::MessageLoop::current()->PostDelayedTask(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698