Skip to content

Commit

Permalink
CefSettings - **EXPERIMENTAL** Add ChromeRuntime
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Apr 8, 2021
1 parent 325c083 commit 94fb457
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CefSharp.Core.Runtime/CefSettingsBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ namespace CefSharp
CommandLineArgDictionary^ get() { return _cefCommandLineArgs; }
}

/// <summary>
/// **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.
/// </summary>
property bool ChromeRuntime
{
bool get() { return _cefSettings->chrome_runtime == 1; }
void set(bool value) { _cefSettings->chrome_runtime = value; }
}

/// <summary>
/// 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.
Expand Down
12 changes: 12 additions & 0 deletions CefSharp.Core/CefSettingsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ public CommandLineArgDictionary CefCommandLineArgs
get { return settings.CefCommandLineArgs; }
}

/// <summary>
/// **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.
/// </summary>
public bool ChromeRuntime
{
get { return settings.ChromeRuntime; }
set { settings.ChromeRuntime = value; }
}

/// <summary>
/// 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.
Expand Down

0 comments on commit 94fb457

Please sign in to comment.