#296: Cherry-picking parts of the 334d15d95a commit from @JanEggers. (I wanted to split it up even further)

This commit is contained in:
JanEggers
2014-03-27 20:18:01 +01:00
committed by Per Lundberg
parent 79053ebc7c
commit ebd3be1b27
+5 -5
View File
@@ -9,22 +9,22 @@ using namespace CefSharp::Internals;
namespace CefSharp
{
Nullable<bool>^ CefStateToBoolean(cef_state_t state)
Nullable<bool> CefStateToBoolean(cef_state_t state)
{
if (state == STATE_DEFAULT)
{
return nullptr;
return Nullable<bool>();
}
else if (state == STATE_ENABLED)
{
return gcnew Nullable<bool>(true);
return Nullable<bool>(true);
}
else if (state == STATE_DISABLED)
{
return gcnew Nullable<bool>(false);
return Nullable<bool>(false);
}
return nullptr;
return Nullable<bool>();
}
cef_state_t CefStateFromBoolean(Nullable<bool>^ value)