#include "chrome/browser/ui/apps/directory_access_confirmation_dialog.h"
#include <memory>
#include <utility>
#include "base/functional/callback.h"
#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
class DirectoryAccessConfirmationDialog : public TabModalConfirmDialogDelegate { … };
DirectoryAccessConfirmationDialog::DirectoryAccessConfirmationDialog(
bool writable,
const std::u16string& app_name,
content::WebContents* web_contents,
base::OnceClosure on_accept,
base::OnceClosure on_cancel)
: … { … }
std::u16string DirectoryAccessConfirmationDialog::GetTitle() { … }
std::u16string DirectoryAccessConfirmationDialog::GetDialogMessage() { … }
std::u16string DirectoryAccessConfirmationDialog::GetAcceptButtonTitle() { … }
std::u16string DirectoryAccessConfirmationDialog::GetCancelButtonTitle() { … }
void DirectoryAccessConfirmationDialog::OnAccepted() { … }
void DirectoryAccessConfirmationDialog::OnCanceled() { … }
void DirectoryAccessConfirmationDialog::OnClosed() { … }
}
void CreateDirectoryAccessConfirmationDialog(bool writable,
const std::u16string& app_name,
content::WebContents* web_contents,
base::OnceClosure on_accept,
base::OnceClosure on_cancel) { … }