| Index: ui/base/ime/win/tsf_bridge.cc
|
| diff --git a/ui/base/ime/win/tsf_bridge.cc b/ui/base/ime/win/tsf_bridge.cc
|
| index bf2820323ef297a99dade58ca8ae4dad0a478ab1..b3905415e1af35ad06d4ff05bb6347a4592d3391 100644
|
| --- a/ui/base/ime/win/tsf_bridge.cc
|
| +++ b/ui/base/ime/win/tsf_bridge.cc
|
| @@ -46,6 +46,10 @@ class TSFBridgeDelegate : public TSFBridge {
|
| virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() OVERRIDE;
|
| virtual TextInputClient* GetFocusedTextInputClient() const OVERRIDE;
|
|
|
| + virtual void OnCandidateWindowShow() OVERRIDE;
|
| + virtual void OnCandidateWindowUpdate() OVERRIDE;
|
| + virtual void OnCandidateWindowHide() OVERRIDE;
|
| +
|
| private:
|
| // Returns true if |tsf_document_map_| is successfully initialized. This
|
| // method should be called from and only from Initialize().
|
| @@ -484,6 +488,24 @@ TSFBridgeDelegate::TSFDocument* TSFBridgeDelegate::GetAssociatedDocument() {
|
| return &it->second;
|
| }
|
|
|
| +void TSFBridgeDelegate::OnCandidateWindowShow() {
|
| + TextInputClient* client = GetFocusedTextInputClient();
|
| + if (client)
|
| + client->OnCandidateWindowShow();
|
| +}
|
| +
|
| +void TSFBridgeDelegate::OnCandidateWindowUpdate() {
|
| + TextInputClient* client = GetFocusedTextInputClient();
|
| + if (client)
|
| + client->OnCandidateWindowUpdate();
|
| +}
|
| +
|
| +void TSFBridgeDelegate::OnCandidateWindowHide() {
|
| + TextInputClient* client = GetFocusedTextInputClient();
|
| + if (client)
|
| + client->OnCandidateWindowHide();
|
| +}
|
| +
|
| } // namespace
|
|
|
|
|
|
|