mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
#296: Cherry-picking parts of the 334d15d95a commit from @JanEggers. (I wanted to split it up even further)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user