From 41e17e281ba31e9eff612017f5a2dafd847278b0 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 5 Apr 2020 23:35:15 +0800 Subject: ... --- src/win/native/input_method.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/win/native/input_method.cpp') 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 WinInputMethodManager::GetContext( + INativeWindow* window) { + Expects(window); + const auto w = CheckPlatform(window, GetPlatformId()); + return std::make_unique(w); +} } // namespace cru::platform::native::win -- cgit v1.2.3