Skip to content

Commit 94fb457

Browse files
committed
1 parent 325c083 commit 94fb457

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

CefSharp.Core.Runtime/CefSettingsBase.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ namespace CefSharp
9393
CommandLineArgDictionary^ get() { return _cefCommandLineArgs; }
9494
}
9595

96+
/// <summary>
97+
/// **Experimental**
98+
/// Set to true to enable use of the Chrome runtime in CEF. This feature is
99+
/// considered experimental and is not recommended for most users at this time.
100+
/// See issue https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks for details.
101+
/// </summary>
102+
property bool ChromeRuntime
103+
{
104+
bool get() { return _cefSettings->chrome_runtime == 1; }
105+
void set(bool value) { _cefSettings->chrome_runtime = value; }
106+
}
107+
96108
/// <summary>
97109
/// Set to true to disable configuration of browser process features using standard CEF and Chromium command-line arguments.
98110
/// Configuration can still be specified using CEF data structures or by adding to CefCommandLineArgs.

CefSharp.Core/CefSettingsBase.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ public CommandLineArgDictionary CefCommandLineArgs
6060
get { return settings.CefCommandLineArgs; }
6161
}
6262

63+
/// <summary>
64+
/// **Experimental**
65+
/// Set to true to enable use of the Chrome runtime in CEF. This feature is
66+
/// considered experimental and is not recommended for most users at this time.
67+
/// See issue https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks for details.
68+
/// </summary>
69+
public bool ChromeRuntime
70+
{
71+
get { return settings.ChromeRuntime; }
72+
set { settings.ChromeRuntime = value; }
73+
}
74+
6375
/// <summary>
6476
/// Set to true to disable configuration of browser process features using standard CEF and Chromium command-line arguments.
6577
/// Configuration can still be specified using CEF data structures or by adding to CefCommandLineArgs.

0 commit comments

Comments
 (0)