mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
Net Core - Make VC++ Methods internal to avoid being included in Ref Assembly
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
@@ -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.");
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user