mirror of
https://github.com/OutSystems/CefGlue.git
synced 2026-12-05 14:22:29 +00:00
63017186f5
* Update to 107.0.3+ge92a530+chromium-107.0.5304.18 (cherry picked from commitafb1e8ded3) * Make it possible to opt out of GC on shutdown (see !15) (cherry picked from commitbd51d4338e) * Update to 107.1.12+g65b79a6+chromium-107.0.5304.122 This is actually no-op changes, because CefGlue doesn't support cef views, still hashes should be updated. (cherry picked from commit06791028fa) * Update to 108.4.13+ga98cd4c+chromium-108.0.5359.125 (cherry picked from commitda3a51f1f2) * fixing merge * Update to 109.1.18+gf1c41e4+chromium-109.0.5414.120 (cherry picked from commit778d110f71) * Update to 110.0.29+gfde72b5+chromium-110.0.5481.104 (cherry picked from commitf9fcdfb19a) * Apply outsystems improvements (cherry picked from commitf85fc86beb) * Non-functional changes, fix formatting. (cherry picked from commitcbe19f256e) * Revert some behavioral changes from Outsystem improvements. - `CefClient::OnProcessMessageReceived` and `CefRenderProcessHandler::OnProcessMessageReceived` methods requires to call `Dispose()` on message by client manually. (cherry picked from commitb22ae17325) * Update to 111.2.7+gebf5d6a+chromium-111.0.5563.148 (cherry picked from commit4c1c12d858) * Update to 112.3.0+gb09c4ca+chromium-112.0.5615.165 (cherry picked from commit8582ac64ce) * Update to 116.0.27+gd8c85ac+chromium-116.0.5845.190 (cherry picked from commit f3e974dfacd454d4558d79f00690a0ee56a86ca5) * Removing EnableHighDpiSupport * changing cef.redist version * generating files * Adding cef.redist.win * Adding cef.redist.win * Fixing packaging * pull request changes: - extra lines removal - extra files removal - cherry-pick of PromiseHolder.cs changes - cherry-pick of RDOIBT-1838 - CefGlue: Duplicate key reference #109 * bumping cefglue version * revert ObjectBinging changes * reverting internal feed * changing .h files * revert copy target change * reverting platform default and nuget sources * - reverting platform default and nuget sources - bumping version * CEF 117.2.4+g5053a95+chromium-117.0.5938.150 upgrade * changing Nuget package version --------- Co-authored-by: Dmitry Azaraev <dmitry.azaraev@gmail.com> Co-authored-by: Luiz Santos <luiz.santos@outsystems.com> Co-authored-by: Mike Russin <michael.t.russin@gmail.com>
56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using Xilium.CefGlue.BrowserProcess.Helpers;
|
|
using Xilium.CefGlue.Common.Shared;
|
|
|
|
namespace Xilium.CefGlue.BrowserProcess
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
#if DEBUG
|
|
try
|
|
{
|
|
#endif
|
|
NativeLibsLoader.Install();
|
|
|
|
var parentProcessId = GetArgumentValue(args, CommandLineArgs.ParentProcessId);
|
|
if (parentProcessId != null && int.TryParse(parentProcessId, out var parentProcessIdAsInt))
|
|
{
|
|
ParentProcessMonitor.StartMonitoring(parentProcessIdAsInt);
|
|
}
|
|
|
|
CefRuntime.Load();
|
|
|
|
var customSchemesArg = GetArgumentValue(args, CommandLineArgs.CustomScheme);
|
|
var customSchemes = CustomScheme.FromCommandLineValue(customSchemesArg);
|
|
// first argument is the path of the executable, but its ignored for now
|
|
var mainArgs = new CefMainArgs(new[] { "BrowserProcess" }.Concat(args).ToArray());
|
|
var exitCode = CefRuntime.ExecuteProcess(mainArgs, new RendererCefApp(customSchemes), IntPtr.Zero);
|
|
if (exitCode != -1)
|
|
{
|
|
Environment.Exit(exitCode);
|
|
}
|
|
#if DEBUG
|
|
}
|
|
catch
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
{
|
|
System.Diagnostics.Debugger.Launch();
|
|
}
|
|
throw;
|
|
}
|
|
#endif
|
|
}
|
|
|
|
private static string GetArgumentValue(string[] args, string argName)
|
|
{
|
|
var arg = args.FirstOrDefault(a => a?.StartsWith(argName + "=") == true);
|
|
return arg?.Substring(argName.Length + 1) ?? "";
|
|
}
|
|
}
|
|
}
|