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

Unified Diff: ui/base/ime/input_method_tsf.cc

Issue 17546002: Support SetFocusedTextInputClient(NULL) in InputMethodTSF (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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/base/ime/input_method_tsf.cc
diff --git a/ui/base/ime/input_method_tsf.cc b/ui/base/ime/input_method_tsf.cc
index 6c433d6e0961247fb3546ed95fcb4bb1d3f8c4dd..ea694654440697feaeba808e48965bbbad2369f1 100644
--- a/ui/base/ime/input_method_tsf.cc
+++ b/ui/base/ime/input_method_tsf.cc
@@ -89,6 +89,12 @@ void InputMethodTSF::SetFocusedTextInputClient(TextInputClient* client) {
if (IsWindowFocused(client)) {
ui::TSFBridge::GetInstance()->SetFocusedClient(
GetAttachedWindowHandle(client), client);
+ } else if (!client) {
+ // SetFocusedTextInputClient(NULL) must be interpreted as
+ // "Remove the attached client whichever client is attached".
+ TextInputClient* focused_client =
+ ui::TSFBridge::GetInstance()->GetFocusedTextInputClient();
+ ui::TSFBridge::GetInstance()->RemoveFocusedClient(focused_client);
Seigo Nonaka 2013/06/21 12:12:38 can be follows? ui::TSFBridge::GetInstance()->Remo
Yohei Yukawa 2013/06/22 10:46:40 Done.
}
InputMethodWin::SetFocusedTextInputClient(client);
}
« 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