OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_IME_WIN_TSF_BRIDGE_H_ | 5 #ifndef UI_BASE_IME_WIN_TSF_BRIDGE_H_ |
6 #define UI_BASE_IME_WIN_TSF_BRIDGE_H_ | 6 #define UI_BASE_IME_WIN_TSF_BRIDGE_H_ |
7 | 7 |
8 #include <Windows.h> | 8 #include <Windows.h> |
9 #include <msctf.h> | 9 #include <msctf.h> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Removes currently focused TextInputClient. | 74 // Removes currently focused TextInputClient. |
75 // Caller must free |client|. | 75 // Caller must free |client|. |
76 virtual void RemoveFocusedClient(TextInputClient* client) = 0; | 76 virtual void RemoveFocusedClient(TextInputClient* client) = 0; |
77 | 77 |
78 // Obtains current thread manager. | 78 // Obtains current thread manager. |
79 virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() = 0; | 79 virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() = 0; |
80 | 80 |
81 // Returns the focused text input client. | 81 // Returns the focused text input client. |
82 virtual TextInputClient* GetFocusedTextInputClient() const = 0; | 82 virtual TextInputClient* GetFocusedTextInputClient() const = 0; |
83 | 83 |
| 84 // Interface for for signalling candidate window events. |
| 85 virtual void OnCandidateWindowShown() = 0; |
| 86 virtual void OnCandidateWindowUpdated() = 0; |
| 87 virtual void OnCandidateWindowHidden() = 0; |
| 88 |
84 protected: | 89 protected: |
85 // Uses GetInstance() instead. | 90 // Uses GetInstance() instead. |
86 TSFBridge(); | 91 TSFBridge(); |
87 | 92 |
88 private: | 93 private: |
89 // Releases TLS instance. | 94 // Releases TLS instance. |
90 static void Finalize(void* data); | 95 static void Finalize(void* data); |
91 | 96 |
92 DISALLOW_COPY_AND_ASSIGN(TSFBridge); | 97 DISALLOW_COPY_AND_ASSIGN(TSFBridge); |
93 }; | 98 }; |
94 | 99 |
95 } // namespace ui | 100 } // namespace ui |
96 | 101 |
97 #endif // UI_BASE_IME_WIN_TSF_BRIDGE_H_ | 102 #endif // UI_BASE_IME_WIN_TSF_BRIDGE_H_ |
OLD | NEW |