From a0aa12493d7509f18571bebb5f6406ceea14788e Mon Sep 17 00:00:00 2001 From: starts2000 Date: Mon, 31 Jul 2017 15:50:36 +0800 Subject: [PATCH 1/4] WPF osr IME support. --- .../CefSharp.BrowserSubprocess.csproj | 9 +- CefSharp.Core/CefSharp.Core.vcxproj | 4 + CefSharp.Core/CefSharp.Core.vcxproj.filters | 12 + .../Internals/CefBrowserHostWrapper.cpp | 26 +- .../Internals/CefBrowserHostWrapper.h | 6 +- CefSharp.Core/OsrImeHandler.cpp | 406 ++++++++++++++++++ CefSharp.Core/OsrImeHandler.h | 117 +++++ CefSharp.Core/OsrImeWin.cpp | 154 +++++++ CefSharp.Core/OsrImeWin.h | 34 ++ CefSharp.Wpf.Example/App.xaml.cs | 2 +- .../CefSharp.Wpf.Example.csproj | 4 +- CefSharp.Wpf/ChromiumWebBrowser.cs | 85 ++-- 12 files changed, 812 insertions(+), 47 deletions(-) create mode 100644 CefSharp.Core/OsrImeHandler.cpp create mode 100644 CefSharp.Core/OsrImeHandler.h create mode 100644 CefSharp.Core/OsrImeWin.cpp create mode 100644 CefSharp.Core/OsrImeWin.h diff --git a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj index 294a3e8a6d..3cbbca2b3b 100644 --- a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj +++ b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj @@ -111,13 +111,8 @@ - if $(PlatformName) == x86 ( - "$(DevEnvDir)..\..\VC\bin\editbin" /largeaddressaware /TSAWARE "$(TargetPath)" - call "$(DevEnvDir)..\Tools\vsvars32.bat" - sn -R "$(TargetPath)" "$(ProjectDir)..\CefSharp.snk" -) else ( - "$(DevEnvDir)..\..\VC\bin\amd64\editbin" /TSAWARE "$(TargetPath)" -) + +