Implement CefDragData ResetFileContents

This commit is contained in:
amaitland
2014-12-08 22:15:16 +10:00
parent bca7086167
commit aff2a76dbe
2 changed files with 12 additions and 0 deletions
@@ -131,6 +131,11 @@ namespace CefSharp
{
_wrappedDragData->AddFile(StringUtils::ToNative(path), StringUtils::ToNative(displayName));
}
virtual void ResetFileContents()
{
_wrappedDragData->ResetFileContents();
}
};
}
}
+7
View File
@@ -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();
}
}