mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
Implement CefDragData ResetFileContents
This commit is contained in:
@@ -131,6 +131,11 @@ namespace CefSharp
|
||||
{
|
||||
_wrappedDragData->AddFile(StringUtils::ToNative(path), StringUtils::ToNative(displayName));
|
||||
}
|
||||
|
||||
virtual void ResetFileContents()
|
||||
{
|
||||
_wrappedDragData->ResetFileContents();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,5 +70,12 @@ namespace CefSharp
|
||||
/// <param name="path">File Path</param>
|
||||
/// <param name="displayName">Optional Display Name</param>
|
||||
void AddFile(string path, string displayName = null);
|
||||
|
||||
/// <summary>
|
||||
/// Reset the file contents. You should do this before calling
|
||||
/// CefBrowserHost::DragTargetDragEnter as the web view does not allow us to
|
||||
/// drag in this kind of data.
|
||||
/// </summary>
|
||||
void ResetFileContents();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user