mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
deca49517b
- Add useImmediatelyInvokedFuncExpression param to EvaluateScriptAsync which wraps the script in an IIFE with the cefSharpInternalCallbackId variable defined in scope to allow for deferred completion - Wrap script in Immediately Invoked Function Expression and call promise.resolve to guarantee a promise. - Return 'CefSharpDefEvalScriptRes' as the result of the js function to defer execution of the callback - Call newly added cefSharp.sendEvalScriptResponse method in javascript when promise has been resolved/rejected This is built up of a few parts and can technically be used by the new user to defer the response until they are ready. Just return `'CefSharpDefEvalScriptRes'` and manually call cefSharp.sendEvalScriptResponse using the cefSharpInternalCallbackId variable which is injected into the script execution (wrapped in an IIFE to limit scope)
251 lines
14 KiB
XML
251 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="..\packages\cef.sdk.85.3.12\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.85.3.12\build\cef.sdk.props')" />
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
<ProjectConfiguration Include="Debug|Win32">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>Win32</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Debug|x64">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|Win32">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>Win32</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|x64">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
</ItemGroup>
|
|
<PropertyGroup Label="Globals">
|
|
<ProjectGuid>{6C4BB501-2F8E-48AC-9AB5-8CFB2D74185C}</ProjectGuid>
|
|
<Keyword>ManagedCProj</Keyword>
|
|
<RootNamespace>CefSharpBrowserSubprocessCore</RootNamespace>
|
|
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
<Import Project="$(SolutionDir)\CefSharp.props" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
|
<CLRSupport>true</CLRSupport>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
|
<CLRSupport>true</CLRSupport>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
|
<CLRSupport>true</CLRSupport>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
|
<CLRSupport>true</CLRSupport>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
<ImportGroup Label="ExtensionSettings">
|
|
</ImportGroup>
|
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<PropertyGroup Label="UserMacros" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
<LinkIncremental>true</LinkIncremental>
|
|
<LinkKeyFile>..\CefSharp.snk</LinkKeyFile>
|
|
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
|
<OutDir>bin\$(Platform)\$(Configuration)\</OutDir>
|
|
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir>
|
|
<SourcePath>$(SolutionDir)packages\$(CefSdkVer)\CEF;$(SourcePath)</SourcePath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<LinkIncremental>true</LinkIncremental>
|
|
<LinkKeyFile>..\CefSharp.snk</LinkKeyFile>
|
|
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
|
<OutDir>bin\$(Platform)\$(Configuration)\</OutDir>
|
|
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir>
|
|
<SourcePath>$(SolutionDir)packages\$(CefSdkVer)\CEF;$(SourcePath)</SourcePath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
<LinkIncremental>false</LinkIncremental>
|
|
<LinkKeyFile>..\CefSharp.snk</LinkKeyFile>
|
|
<OutDir>bin\$(Platform)\$(Configuration)\</OutDir>
|
|
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir>
|
|
<SourcePath>$(SolutionDir)packages\$(CefSdkVer)\CEF;$(SourcePath)</SourcePath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<LinkIncremental>false</LinkIncremental>
|
|
<LinkKeyFile>..\CefSharp.snk</LinkKeyFile>
|
|
<OutDir>bin\$(Platform)\$(Configuration)\</OutDir>
|
|
<IntDir>obj\$(Platform)\$(Configuration)\</IntDir>
|
|
<SourcePath>$(SolutionDir)packages\$(CefSdkVer)\CEF;$(SourcePath)</SourcePath>
|
|
</PropertyGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
<ClCompile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<AdditionalIncludeDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF;%(AdditionalIncludeDirectories);$(ProjectDir)</AdditionalIncludeDirectories>
|
|
<Optimization>Disabled</Optimization>
|
|
<PreprocessorDefinitions>WIN32;_DEBUG;EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
<BrowseInformation>true</BrowseInformation>
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
</ClCompile>
|
|
<Link>
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
<AdditionalDependencies>libcef.lib;libcef_dll_wrapper.lib</AdditionalDependencies>
|
|
<AdditionalLibraryDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration);$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration)\VS$(VisualStudioProductVersion);</AdditionalLibraryDirectories>
|
|
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<ClCompile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<AdditionalIncludeDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF;%(AdditionalIncludeDirectories);$(ProjectDir)</AdditionalIncludeDirectories>
|
|
<Optimization>Disabled</Optimization>
|
|
<PreprocessorDefinitions>WIN32;_DEBUG;EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
</ClCompile>
|
|
<Link>
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
<AdditionalDependencies>libcef.lib;libcef_dll_wrapper.lib</AdditionalDependencies>
|
|
<AdditionalLibraryDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration);$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration)\VS$(VisualStudioProductVersion);</AdditionalLibraryDirectories>
|
|
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
<ClCompile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<AdditionalIncludeDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF;%(AdditionalIncludeDirectories);$(ProjectDir)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions>WIN32;NDEBUG;EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
<BrowseInformation>true</BrowseInformation>
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
</ClCompile>
|
|
<Link>
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
<AdditionalDependencies>libcef.lib;libcef_dll_wrapper.lib</AdditionalDependencies>
|
|
<AdditionalLibraryDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration);$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration)\VS$(VisualStudioProductVersion)</AdditionalLibraryDirectories>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<ClCompile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<AdditionalIncludeDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF;%(AdditionalIncludeDirectories);$(ProjectDir)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions>WIN32;NDEBUG;EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
</ClCompile>
|
|
<Link>
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
<AdditionalDependencies>libcef.lib;libcef_dll_wrapper.lib</AdditionalDependencies>
|
|
<AdditionalLibraryDirectories>$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration);$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration)\VS$(VisualStudioProductVersion)</AdditionalLibraryDirectories>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Core" />
|
|
<Reference Include="System.Data" />
|
|
<Reference Include="System.Runtime.Serialization" />
|
|
<Reference Include="System.ServiceModel" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="..\CefSharp.Core\Internals\MCefRefPtr.h" />
|
|
<ClInclude Include="..\CefSharp.Core\Internals\ReportUnhandledExceptions.h" />
|
|
<ClInclude Include="..\CefSharp.Core\Internals\Serialization\ObjectsSerialization.h" />
|
|
<ClInclude Include="..\CefSharp.Core\Internals\Serialization\Primitives.h" />
|
|
<ClInclude Include="..\CefSharp.Core\Internals\StringUtils.h" />
|
|
<ClInclude Include="BindObjectAsyncHandler.h" />
|
|
<ClCompile Include="BrowserSubprocessExecutable.h" />
|
|
<ClInclude Include="Cef.h" />
|
|
<ClInclude Include="JavascriptPromiseHandler.h" />
|
|
<ClInclude Include="SubProcessApp.h" />
|
|
<ClInclude Include="Async\JavascriptAsyncMethodCallback.h" />
|
|
<ClInclude Include="Async\JavascriptAsyncMethodHandler.h" />
|
|
<ClInclude Include="Async\JavascriptAsyncMethodWrapper.h" />
|
|
<ClInclude Include="Async\JavascriptAsyncObjectWrapper.h" />
|
|
<ClInclude Include="CefAppUnmanagedWrapper.h" />
|
|
<ClInclude Include="JavascriptPostMessageHandler.h" />
|
|
<ClCompile Include="WcfBrowserSubprocessExecutable.h" />
|
|
<ClInclude Include="Wrapper\Frame.h" />
|
|
<ClInclude Include="Wrapper\Browser.h" />
|
|
<ClInclude Include="Wrapper\V8Context.h" />
|
|
<ClInclude Include="RegisterBoundObjectHandler.h" />
|
|
<ClInclude Include="RegisterBoundObjectRegistry.h" />
|
|
<ClInclude Include="resource.h" />
|
|
<ClInclude Include="WcfEnabledSubProcess.h" />
|
|
<ClInclude Include="SubProcess.h" />
|
|
<ClInclude Include="CefBrowserWrapper.h" />
|
|
<ClInclude Include="JavascriptCallbackRegistry.h" />
|
|
<ClInclude Include="JavascriptCallbackWrapper.h" />
|
|
<ClInclude Include="JavascriptMethodWrapper.h" />
|
|
<ClInclude Include="JavascriptMethodHandler.h" />
|
|
<ClInclude Include="JavascriptObjectWrapper.h" />
|
|
<ClInclude Include="JavascriptPropertyWrapper.h" />
|
|
<ClInclude Include="JavascriptPropertyHandler.h" />
|
|
<ClInclude Include="JavascriptRootObjectWrapper.h" />
|
|
<ClInclude Include="Serialization\JsObjectsSerialization.h" />
|
|
<ClInclude Include="Stdafx.h" />
|
|
<ClInclude Include="TypeUtils.h" />
|
|
<ClInclude Include="Serialization\V8Serialization.h" />
|
|
<ClInclude Include="vcclr_local.h" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="..\CefSharp.Core\Internals\Serialization\ObjectsSerialization.cpp" />
|
|
<ClCompile Include="..\CefSharp.Core\Internals\Serialization\Primitives.cpp" />
|
|
<ClCompile Include="AssemblyInfo.cpp" />
|
|
<ClCompile Include="Async\JavascriptAsyncMethodCallback.cpp" />
|
|
<ClCompile Include="Async\JavascriptAsyncMethodHandler.cpp" />
|
|
<ClCompile Include="Async\JavascriptAsyncMethodWrapper.cpp" />
|
|
<ClCompile Include="Async\JavascriptAsyncObjectWrapper.cpp" />
|
|
<ClCompile Include="CefAppUnmanagedWrapper.cpp" />
|
|
<ClCompile Include="Wrapper\Frame.cpp" />
|
|
<ClCompile Include="Wrapper\Browser.cpp" />
|
|
<ClCompile Include="WcfEnabledSubProcess.cpp" />
|
|
<ClCompile Include="JavascriptCallbackRegistry.cpp" />
|
|
<ClCompile Include="JavascriptMethodHandler.cpp" />
|
|
<ClCompile Include="JavascriptMethodWrapper.cpp" />
|
|
<ClCompile Include="JavascriptObjectWrapper.cpp" />
|
|
<ClCompile Include="JavascriptPropertyWrapper.cpp" />
|
|
<ClCompile Include="JavascriptRootObjectWrapper.cpp" />
|
|
<ClCompile Include="Serialization\JsObjectsSerialization.cpp" />
|
|
<ClCompile Include="Stdafx.cpp">
|
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
|
</ClCompile>
|
|
<ClCompile Include="TypeUtils.cpp" />
|
|
<ClCompile Include="Serialization\V8Serialization.cpp" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\CefSharp\CefSharp.csproj">
|
|
<Project>{a55848cc-10e7-40cb-addb-04740b16dd43}</Project>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ResourceCompile Include="Resource.rc" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="packages.config" />
|
|
</ItemGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
<ImportGroup Label="ExtensionTargets" />
|
|
</Project> |