feat: add shell.trashItem() to replace shell.moveItemToTrash() (#25114)
This commit is contained in:
parent
e9e7eee25e
commit
1b6534b326
11 changed files with 212 additions and 21 deletions
|
@ -40,9 +40,13 @@ void OpenExternal(const GURL& url,
|
|||
const OpenExternalOptions& options,
|
||||
OpenCallback callback);
|
||||
|
||||
// Move a file to trash.
|
||||
// Move a file to trash. (Deprecated.)
|
||||
bool MoveItemToTrash(const base::FilePath& full_path, bool delete_on_fail);
|
||||
|
||||
// Move a file to trash, asynchronously.
|
||||
void TrashItem(const base::FilePath& full_path,
|
||||
base::OnceCallback<void(bool, const std::string&)> callback);
|
||||
|
||||
void Beep();
|
||||
|
||||
#if defined(OS_WIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue