Resolves #1386 - Add UserDataPath

Also add JavascriptFlags and UncaughtExceptionStackSize
Hopefully all the properties have been exposed now
This commit is contained in:
amaitland
2015-10-30 08:06:46 +10:00
parent fd0f847cce
commit 00eda4e8cc
+38
View File
@@ -80,6 +80,20 @@ namespace CefSharp
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->cache_path, value); }
}
/// <summary>
/// The location where user data such as spell checking dictionary files will
/// be stored on disk. If empty then the default platform-specific user data
/// directory will be used ("~/.cef_user_data" directory on Linux,
/// "~/Library/Application Support/CEF/User Data" directory on Mac OS X,
/// "Local Settings\Application Data\CEF\User Data" directory under the user
/// profile directory on Windows).
/// </summary>
property String^ UserDataPath
{
String^ get() { return StringUtils::ToClr(_cefSettings->user_data_path); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->user_data_path, value); }
}
/// <summary>
/// Set to true in order to completely ignore SSL certificate errors.
/// This is NOT recommended.
@@ -120,6 +134,17 @@ namespace CefSharp
void set(CefSharp::LogSeverity value) { _cefSettings->log_severity = (cef_log_severity_t)value; }
}
/// <summary>
/// Custom flags that will be used when initializing the V8 JavaScript engine.
/// The consequences of using custom flags may not be well tested. Also
/// configurable using the "js-flags" command-line switch.
/// </summary>
property String^ JavascriptFlags
{
String^ get() { return StringUtils::ToClr(_cefSettings->javascript_flags); }
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->javascript_flags, value); }
}
property bool PackLoadingDisabled
{
bool get() { return _cefSettings->pack_loading_disabled == 1; }
@@ -138,6 +163,19 @@ namespace CefSharp
void set(int value) { _cefSettings->remote_debugging_port = value; }
}
/// <summary>
/// The number of stack trace frames to capture for uncaught exceptions.
/// Specify a positive value to enable the CefRenderProcessHandler::
/// OnUncaughtException() callback. Specify 0 (default value) and
/// OnUncaughtException() will not be called. Also configurable using the
/// "uncaught-exception-stack-size" command-line switch.
/// </summary>
property int UncaughtExceptionStackSize
{
int get() { return _cefSettings->uncaught_exception_stack_size; }
void set(int value) { _cefSettings->uncaught_exception_stack_size = value; }
}
property String^ UserAgent
{
String^ get() { return StringUtils::ToClr(_cefSettings->user_agent); }