diff options
author | komatsu@chromium.org <komatsu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-08 14:06:51 +0000 |
---|---|---|
committer | komatsu@chromium.org <komatsu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-08 14:06:51 +0000 |
commit | 9b600a49316977a03e60e7eda68441286e4e036f (patch) | |
tree | 13e1213d8f2e485cfe4e9d10662130887bdbf324 /ui | |
parent | 7f99fc2dbf51e36dc3c15fdcba84de68077f71a0 (diff) | |
download | chromium_src-9b600a49316977a03e60e7eda68441286e4e036f.zip chromium_src-9b600a49316977a03e60e7eda68441286e4e036f.tar.gz chromium_src-9b600a49316977a03e60e7eda68441286e4e036f.tar.bz2 |
Check the focus status when display the input method mode indicator.
To handle the focus status, this patch introduces a new funtion
IBusPanelCandidateWindowHandlerInterface::SetFocus() and call it
from InputMethodEngineIBus.
BUG=310584
Review URL: https://codereview.chromium.org/61553003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/base/ime/input_method_ibus.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/base/ime/input_method_ibus.cc b/ui/base/ime/input_method_ibus.cc index 92795bc..d75fbd9 100644 --- a/ui/base/ime/input_method_ibus.cc +++ b/ui/base/ime/input_method_ibus.cc @@ -393,6 +393,14 @@ void InputMethodIBus::UpdateContextFocusState() { context_focused_ = true; break; } + + // Propagate the focus event to the candidate window handler which also + // manages the input method mode indicator. + chromeos::IBusPanelCandidateWindowHandlerInterface* candidate_window = + chromeos::IBusBridge::Get()->GetCandidateWindowHandler(); + if (candidate_window) + candidate_window->FocusStateChanged(context_focused_); + if (!GetEngine()) return; |