From 94fb45766de8e0b809bc9ef9195c4e0a9259919f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 8 Apr 2021 12:59:19 +1000 Subject: [PATCH] CefSettings - **EXPERIMENTAL** Add ChromeRuntime https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks --- CefSharp.Core.Runtime/CefSettingsBase.h | 12 ++++++++++++ CefSharp.Core/CefSettingsBase.cs | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/CefSharp.Core.Runtime/CefSettingsBase.h b/CefSharp.Core.Runtime/CefSettingsBase.h index ce619b37c7..7d4965ba23 100644 --- a/CefSharp.Core.Runtime/CefSettingsBase.h +++ b/CefSharp.Core.Runtime/CefSettingsBase.h @@ -93,6 +93,18 @@ namespace CefSharp CommandLineArgDictionary^ get() { return _cefCommandLineArgs; } } + /// + /// **Experimental** + /// Set to true to enable use of the Chrome runtime in CEF. This feature is + /// considered experimental and is not recommended for most users at this time. + /// See issue https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks for details. + /// + property bool ChromeRuntime + { + bool get() { return _cefSettings->chrome_runtime == 1; } + void set(bool value) { _cefSettings->chrome_runtime = value; } + } + /// /// Set to true to disable configuration of browser process features using standard CEF and Chromium command-line arguments. /// Configuration can still be specified using CEF data structures or by adding to CefCommandLineArgs. diff --git a/CefSharp.Core/CefSettingsBase.cs b/CefSharp.Core/CefSettingsBase.cs index cdbafb4e0a..57450d0654 100644 --- a/CefSharp.Core/CefSettingsBase.cs +++ b/CefSharp.Core/CefSettingsBase.cs @@ -60,6 +60,18 @@ public CommandLineArgDictionary CefCommandLineArgs get { return settings.CefCommandLineArgs; } } + /// + /// **Experimental** + /// Set to true to enable use of the Chrome runtime in CEF. This feature is + /// considered experimental and is not recommended for most users at this time. + /// See issue https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks for details. + /// + public bool ChromeRuntime + { + get { return settings.ChromeRuntime; } + set { settings.ChromeRuntime = value; } + } + /// /// Set to true to disable configuration of browser process features using standard CEF and Chromium command-line arguments. /// Configuration can still be specified using CEF data structures or by adding to CefCommandLineArgs.