Settings.h: use value as set() param

This commit is contained in:
anthony taranto
2012-03-19 18:47:14 -07:00
parent 93052b090c
commit e468c486ba
+11 -11
View File
@@ -24,7 +24,7 @@ namespace CefSharp
property bool MultiThreadedMessageLoop
{
bool get() { return _cefSettings->multi_threaded_message_loop; }
void set(bool val) { _cefSettings->multi_threaded_message_loop = val; }
void set(bool value) { _cefSettings->multi_threaded_message_loop = value; }
}
void AddPluginPath(const cef_string_t *path)
@@ -49,25 +49,25 @@ namespace CefSharp
property String^ CachePath
{
String^ get() { return toClr(_cefSettings->cache_path); }
void set(String^ path) { assignFromString(_cefSettings->cache_path, path); }
void set(String^ value) { assignFromString(_cefSettings->cache_path, value); }
}
property String^ UserAgent
{
String^ get() { return toClr(_cefSettings->user_agent); }
void set(String^ userAgent) { assignFromString(_cefSettings->user_agent, userAgent); }
void set(String^ value) { assignFromString(_cefSettings->user_agent, value); }
}
property String^ ProductVersion
{
String^ get() { return toClr(_cefSettings->product_version); }
void set(String^ productVersion) { assignFromString(_cefSettings->product_version, productVersion); }
void set(String^ value) { assignFromString(_cefSettings->product_version, value); }
}
property String^ Locale
{
String^ get() { return toClr(_cefSettings->locale); }
void set(String^ locale) { assignFromString(_cefSettings->locale, locale); }
void set(String^ value) { assignFromString(_cefSettings->locale, value); }
}
void AddPluginPath(String^ path)
@@ -83,37 +83,37 @@ namespace CefSharp
property String^ LogFile
{
String^ get() { return toClr(_cefSettings->log_file); }
void set(String^ logFile) { assignFromString(_cefSettings->log_file, logFile); }
void set(String^ value) { assignFromString(_cefSettings->log_file, value); }
}
property CefSharp::LogSeverity LogSeverity
{
CefSharp::LogSeverity get() { return static_cast<CefSharp::LogSeverity>(_cefSettings->log_severity); }
void set(CefSharp::LogSeverity logSeverity) { _cefSettings->log_severity = static_cast<cef_log_severity_t>(logSeverity); }
void set(CefSharp::LogSeverity value) { _cefSettings->log_severity = static_cast<cef_log_severity_t>(value); }
}
property bool AutoDetectProxySettings
{
bool get() { return _cefSettings->auto_detect_proxy_settings_enabled; }
void set(bool autoDetectProxySettings) { _cefSettings->auto_detect_proxy_settings_enabled = autoDetectProxySettings; }
void set(bool value) { _cefSettings->auto_detect_proxy_settings_enabled = value; }
}
property String^ PackFilePath
{
String^ get() { return toClr(_cefSettings->pack_file_path); }
void set(String^ packFilePath) { assignFromString(_cefSettings->pack_file_path, packFilePath); }
void set(String^ value) { assignFromString(_cefSettings->pack_file_path, value); }
}
property String^ LocalesDirPath
{
String^ get() { return toClr(_cefSettings->locales_dir_path); }
void set(String^ localesDirPath) { assignFromString(_cefSettings->locales_dir_path, localesDirPath); }
void set(String^ value) { assignFromString(_cefSettings->locales_dir_path, value); }
}
property bool PackLoadingDisabled
{
bool get() { return _cefSettings->pack_loading_disabled; }
void set(bool packLoadingDisabled) { _cefSettings->pack_loading_disabled = packLoadingDisabled; }
void set(bool value) { _cefSettings->pack_loading_disabled = value; }
}
};
}