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

@ -183,6 +183,11 @@ void CefDragDataImpl::AddFile(const CefString& path,
ui::FileInfo(base::FilePath(path), base::FilePath(display_name)));
}
void CefDragDataImpl::ClearFilenames() {
base::AutoLock lock_scope(lock_);
data_.filenames.clear();
}
void CefDragDataImpl::SetReadOnly(bool read_only) {
base::AutoLock lock_scope(lock_);
if (read_only_ == read_only)
@ -204,4 +209,4 @@ CefPoint CefDragDataImpl::GetImageHotspot() {
bool CefDragDataImpl::HasImage() {
base::AutoLock lock_scope(lock_);
return image_ ? true : false;
}
}