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

Unified Diff: content/browser/renderer_host/text_input_manager.cc

Issue 2743933003: Fix TextInputManager for Android (Closed)
Patch Set: Created 3 years, 9 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: content/browser/renderer_host/text_input_manager.cc
diff --git a/content/browser/renderer_host/text_input_manager.cc b/content/browser/renderer_host/text_input_manager.cc
index c472b34ce0e8c6a4d4ab5af005e1d56b55882a83..6a96396af7686cc5de3898159785027a0511e725 100644
--- a/content/browser/renderer_host/text_input_manager.cc
+++ b/content/browser/renderer_host/text_input_manager.cc
@@ -102,7 +102,11 @@ void TextInputManager::UpdateTextInputState(
// already synthesized the loss of TextInputState for the |view| before (see
// below). So we can forget about this method ever being called (no observer
// calls necessary).
+ // NOTE: Android requires state to be returned even when the current state
+ // is/becomes NONE. Otherwise IME may become irresponsive.
+#if !defined(OS_ANDROID)
return;
EhsanK 2017/03/10 15:43:16 This should be good since we will not have more th
Changwan Ryu 2017/03/10 16:01:38 As long as it returns something, it should work co
EhsanK 2017/03/10 16:46:18 Right. So here: https://cs.chromium.org/chromium/s
+#endif
}
// Since |view| is registered, we already have a previous value for its
« 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