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

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: Call InputMethod::OnBlur() in HandleBlur() 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 a6249c6e7c8593f5bec180b9d4423ddae7630171..e2152adbab85bf640f25e27befc12fcf5116e0f3 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(
@@ -691,6 +692,7 @@ void NativeTextfieldViews::HandleFocus() {
void NativeTextfieldViews::HandleBlur() {
GetRenderText()->set_focused(false);
+ GetInputMethod()->OnBlur();
// Stop blinking cursor.
cursor_timer_.InvalidateWeakPtrs();
if (is_cursor_visible_) {
« 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