From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- widget/windows/nsFilePicker.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'widget/windows/nsFilePicker.h') diff --git a/widget/windows/nsFilePicker.h b/widget/windows/nsFilePicker.h index 59108bc0dd..5a4272d30f 100644 --- a/widget/windows/nsFilePicker.h +++ b/widget/windows/nsFilePicker.h @@ -56,8 +56,6 @@ class nsFilePicker final : public nsBaseWinFilePicker { using Maybe = mozilla::Maybe; template using Result = mozilla::Result; - template - using FPPromise = RefPtr, HRESULT, true>>; using Command = mozilla::widget::filedialog::Command; using Results = mozilla::widget::filedialog::Results; @@ -89,23 +87,12 @@ class nsFilePicker final : public nsBaseWinFilePicker { NS_IMETHOD Open(nsIFilePickerShownCallback* aCallback) override; private: - RefPtr> ShowFolderPicker( + using Unit = mozilla::Ok; + RefPtr> ShowFolderPicker( const nsString& aInitialDir); - RefPtr> ShowFilePicker( + RefPtr> ShowFilePicker( const nsString& aInitialDir); - // Show the dialog out-of-process. - static FPPromise ShowFilePickerRemote( - HWND aParent, FileDialogType type, nsTArray const& commands); - static FPPromise ShowFolderPickerRemote( - HWND aParent, nsTArray const& commands); - - // Show the dialog in-process. - static FPPromise ShowFilePickerLocal( - HWND aParent, FileDialogType type, nsTArray const& commands); - static FPPromise ShowFolderPickerLocal( - HWND aParent, nsTArray const& commands); - void ClearFiles(); using ContentAnalysisResponse = mozilla::MozPromise; RefPtr CheckContentAnalysisService(); -- cgit v1.2.3