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

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

Issue 302363002: Revert "Fix textfield blur, to prevent resetting the text input client when navigating between text… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 0202b0fd694e1a11047a0258897dca591fa599de..f524912a0aab09cac613b5b7af8c2747fa06aa0b 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -872,7 +872,7 @@ void Textfield::OnFocus() {
GetRenderText()->set_focused(true);
cursor_visible_ = true;
SchedulePaint();
- GetInputMethod()->OnTextInputTypeChanged(this);
+ GetInputMethod()->OnFocus();
OnCaretBoundsChanged();
const size_t caret_blink_ms = Textfield::GetCaretBlinkMs();
@@ -888,7 +888,7 @@ void Textfield::OnFocus() {
void Textfield::OnBlur() {
GetRenderText()->set_focused(false);
- GetInputMethod()->OnTextInputTypeChanged(this);
+ GetInputMethod()->OnBlur();
cursor_repaint_timer_.Stop();
if (cursor_visible_) {
cursor_visible_ = false;
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698