| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void SetFocusedClient(HWND focused_window, | 60 virtual void SetFocusedClient(HWND focused_window, |
| 61 TextInputClient* client) = 0; | 61 TextInputClient* client) = 0; |
| 62 | 62 |
| 63 // Removes currently focused TextInputClient. | 63 // Removes currently focused TextInputClient. |
| 64 // Caller must free |client|. | 64 // Caller must free |client|. |
| 65 virtual void RemoveFocusedClient(TextInputClient* client) = 0; | 65 virtual void RemoveFocusedClient(TextInputClient* client) = 0; |
| 66 | 66 |
| 67 // Obtains current thread manager. | 67 // Obtains current thread manager. |
| 68 virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() = 0; | 68 virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() = 0; |
| 69 | 69 |
| 70 // Returns the focused text input client. |
| 71 virtual TextInputClient* GetFocusedTextInputClient() const = 0; |
| 72 |
| 70 protected: | 73 protected: |
| 71 // Uses GetInstance() instead. | 74 // Uses GetInstance() instead. |
| 72 TSFBridge(); | 75 TSFBridge(); |
| 73 | 76 |
| 74 private: | 77 private: |
| 75 // Releases TLS instance. | 78 // Releases TLS instance. |
| 76 static void Finalize(void* data); | 79 static void Finalize(void* data); |
| 77 | 80 |
| 78 DISALLOW_COPY_AND_ASSIGN(TSFBridge); | 81 DISALLOW_COPY_AND_ASSIGN(TSFBridge); |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 } // namespace ui | 84 } // namespace ui |
| 82 | 85 |
| 83 #endif // UI_BASE_IME_WIN_TSF_BRIDGE_H_ | 86 #endif // UI_BASE_IME_WIN_TSF_BRIDGE_H_ |
| OLD | NEW |