diff options
author | crupest <crupest@outlook.com> | 2020-04-05 23:35:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-04-05 23:35:15 +0800 |
commit | 41e17e281ba31e9eff612017f5a2dafd847278b0 (patch) | |
tree | f0736679652abbfa1beeef3aa3d7dabfae8da0b9 /src/win/native/input_method.cpp | |
parent | e9590859b1aaa1c2bf4714893daf34fbfd4166fd (diff) | |
download | cru-41e17e281ba31e9eff612017f5a2dafd847278b0.tar.gz cru-41e17e281ba31e9eff612017f5a2dafd847278b0.tar.bz2 cru-41e17e281ba31e9eff612017f5a2dafd847278b0.zip |
...
Diffstat (limited to 'src/win/native/input_method.cpp')
-rw-r--r-- | src/win/native/input_method.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/win/native/input_method.cpp b/src/win/native/input_method.cpp index adadf8e2..4a125e8d 100644 --- a/src/win/native/input_method.cpp +++ b/src/win/native/input_method.cpp @@ -1,6 +1,7 @@ #include "cru/win/native/input_method.hpp" #include "cru/common/logger.hpp" +#include "cru/platform/check.hpp" #include "cru/win/exception.hpp" #include "cru/win/native/window.hpp" #include "cru/win/string.hpp" @@ -100,4 +101,15 @@ void WinInputMethodContextRef::OnWindowNativeMessage( } } } + +WinInputMethodManager::WinInputMethodManager(WinUiApplication*) {} + +WinInputMethodManager::~WinInputMethodManager() {} + +std::unique_ptr<IInputMethodContextRef> WinInputMethodManager::GetContext( + INativeWindow* window) { + Expects(window); + const auto w = CheckPlatform<WinNativeWindow>(window, GetPlatformId()); + return std::make_unique<WinInputMethodContextRef>(w); +} } // namespace cru::platform::native::win |