Net Core - Make VC++ Methods internal to avoid being included in Ref Assembly

This commit is contained in:
amaitland
2020-08-12 14:16:35 +10:00
parent e1ca2f085b
commit 217258c2ae
6 changed files with 51 additions and 50 deletions
+9 -9
View File
@@ -47,6 +47,15 @@ namespace CefSharp
_disposed = true;
}
operator CefRefPtr<CefDragData>()
{
if (this == nullptr)
{
return NULL;
}
return _wrappedDragData.get();
}
public:
virtual property bool IsReadOnly;
virtual property String^ FileName;
@@ -210,15 +219,6 @@ namespace CefSharp
auto writer = CefStreamWriter::CreateForHandler(writeHandler);
return (Int64)_wrappedDragData->GetFileContents(writer);
}
operator CefRefPtr<CefDragData>()
{
if (this == nullptr)
{
return NULL;
}
return _wrappedDragData.get();
}
};
}
}
+2 -1
View File
@@ -17,7 +17,7 @@ namespace CefSharp
private:
const CefPopupFeatures* _popupFeatures;
public:
internal:
/// <summary>
/// Constructor.
/// </summary>
@@ -27,6 +27,7 @@ namespace CefSharp
_popupFeatures = popupFeatures;
}
public:
!PopupFeatures()
{
_popupFeatures = NULL;
+9 -9
View File
@@ -74,6 +74,15 @@ namespace CefSharp
}
}
operator CefRefPtr<CefPostData>()
{
if (this == nullptr)
{
return NULL;
}
return _postData.get();
}
public:
/// <summary>
/// Default constructor.
@@ -221,14 +230,5 @@ namespace CefSharp
return _postData->HasExcludedElements();
}
}
operator CefRefPtr<CefPostData>()
{
if (this == nullptr)
{
return NULL;
}
return _postData.get();
}
};
}
+9 -9
View File
@@ -36,6 +36,15 @@ namespace CefSharp
_disposed = true;
}
operator CefRefPtr<CefPostDataElement>()
{
if (this == nullptr)
{
return NULL;
}
return _postDataElement.get();
}
public:
PostDataElement()
{
@@ -112,14 +121,5 @@ namespace CefSharp
_postDataElement->SetToBytes(val->Length, static_cast<void*>(src));
}
}
operator CefRefPtr<CefPostDataElement>()
{
if (this == nullptr)
{
return NULL;
}
return _postDataElement.get();
}
};
}
+17 -17
View File
@@ -37,6 +37,23 @@ namespace CefSharp
_disposed = true;
}
operator CefRefPtr<CefRequest>()
{
if (this == nullptr)
{
return NULL;
}
return _request.get();
}
void ThrowIfReadOnly()
{
if (_request->IsReadOnly())
{
throw gcnew NotSupportedException("IRequest is read-only and cannot be modified. Check IRequest.IsReadOnly to guard against this exception.");
}
}
public:
Request()
{
@@ -59,22 +76,5 @@ namespace CefSharp
virtual String^ GetHeaderByName(String^ name);
virtual void SetHeaderByName(String^ name, String^ value, bool overwrite);
operator CefRefPtr<CefRequest>()
{
if (this == nullptr)
{
return NULL;
}
return _request.get();
}
void ThrowIfReadOnly()
{
if (_request->IsReadOnly())
{
throw gcnew NotSupportedException("IRequest is read-only and cannot be modified. Check IRequest.IsReadOnly to guard against this exception.");
}
}
};
}
+5 -5
View File
@@ -22,6 +22,11 @@ namespace CefSharp
}
CefWindowInfo* GetWindowInfo()
{
return _windowInfo;
}
public:
WindowInfo() : _windowInfo(new CefWindowInfo())
{
@@ -203,10 +208,5 @@ namespace CefSharp
{
_windowInfo->SetAsWindowless((HWND)parentHandle.ToPointer());
}
CefWindowInfo* GetWindowInfo()
{
return _windowInfo;
}
};
}