Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_WIN_TEXT_SERVICES_BRIDGE_H_ | |
| 6 #define BASE_WIN_TEXT_SERVICES_BRIDGE_H_ | |
| 7 | |
| 8 #include <msctf.h> | |
| 9 #include <Windows.h> | |
| 10 | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/win/metro.h" | |
| 13 #include "base/win/scoped_com_initializer.h" | |
| 14 #include "base/win/scoped_comptr.h" | |
| 15 #include "base/message_pump_win.h" | |
| 16 | |
| 17 namespace base { | |
| 18 namespace win { | |
| 19 | |
| 20 class TextServicesBridge : public base::MessagePumpForUI::MessageFilter { | |
|
cpu_(ooo_6.6-7.5)
2012/08/22 21:37:18
name it TextServicesMessageFilter or something lik
| |
| 21 public: | |
| 22 TextServicesBridge(); | |
| 23 virtual ~TextServicesBridge(); | |
| 24 virtual bool Init() OVERRIDE; | |
| 25 virtual BOOL DoPeekMessage(MSG* message, | |
| 26 HWND hwnd, | |
| 27 UINT msg_filter_min, | |
| 28 UINT msg_filter_max, | |
| 29 UINT remove_msg) OVERRIDE; | |
| 30 virtual bool ProcessMessage(const MSG& message) OVERRIDE; | |
| 31 | |
| 32 private: | |
| 33 TfClientId client_id_; | |
| 34 bool is_initialized_; | |
| 35 base::win::ScopedCOMInitializer scoped_com_initialiser_; | |
|
cpu_(ooo_6.6-7.5)
2012/08/22 21:37:18
see my comment about COM in the cc file
| |
| 36 base::win::ScopedComPtr<ITfThreadMgr> thread_mgr_; | |
| 37 base::win::ScopedComPtr<ITfMessagePump> message_pump_; | |
| 38 base::win::ScopedComPtr<ITfKeystrokeMgr> keystroke_mgr_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(TextServicesBridge); | |
| 41 }; | |
| 42 | |
| 43 } // namespace win | |
| 44 } // namespace base | |
| 45 | |
| 46 #endif // BASE_WIN_TEXT_SERVICES_BRIDGE_H_ | |
| OLD | NEW |