Adding ClearFilenames method to CefDragData (fixes issue #3266)

This commit is contained in:
Jelle Bleyaert
2022-03-02 19:44:16 +00:00
committed by Marshall Greenblatt
parent 0cb874c9e1
commit 3c2e97d82e
8 changed files with 54 additions and 9 deletions

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=57352ff85ca98fc34a0f2c58afbb1224ce1a1f09$
// $hash=7d9a55e1e8779d677d34e2b6c9277db7e6b75d3d$
//
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
@ -420,6 +420,19 @@ void CefDragDataCToCpp::AddFile(const CefString& path,
_struct->add_file(_struct, path.GetStruct(), display_name.GetStruct());
}
NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::ClearFilenames() {
shutdown_checker::AssertNotShutdown();
cef_drag_data_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, clear_filenames))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->clear_filenames(_struct);
}
NO_SANITIZE("cfi-icall") CefRefPtr<CefImage> CefDragDataCToCpp::GetImage() {
shutdown_checker::AssertNotShutdown();