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

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

Issue 2597413002: Makes the InputMethodEngine can be switched per profile when the top-level browser window is switch… (Closed)
Patch Set: . Created 4 years 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 | « ui/base/ime/ime_engine_handler_interface.h ('k') | 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_base.cc
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc
index 9d43d8523a85811d2a7569d0a9463abc95c59f48..492d7f9a5e06700b527e90f9f6a60b9ae97c6503 100644
--- a/ui/base/ime/input_method_base.cc
+++ b/ui/base/ime/input_method_base.cc
@@ -34,8 +34,13 @@ void InputMethodBase::SetDelegate(internal::InputMethodDelegate* delegate) {
}
void InputMethodBase::OnFocus() {
- if (ui::IMEBridge::Get())
+ if (ui::IMEBridge::Get()) {
ui::IMEBridge::Get()->SetInputContextHandler(this);
+ ui::IMEEngineHandlerInterface* engine =
+ ui::IMEBridge::Get()->GetCurrentEngineHandler();
+ if (engine)
+ engine->MaybeSwitchEngine();
+ }
}
void InputMethodBase::OnBlur() {
« no previous file with comments | « ui/base/ime/ime_engine_handler_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698