40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_BROWSER_UI_BROWSER_DIALOGS_H_
|
|
#define BRAVE_BROWSER_UI_BROWSER_DIALOGS_H_
|
|
|
|
#include "base/functional/callback_forward.h"
|
|
#include "brave/components/brave_vpn/common/buildflags/buildflags.h"
|
|
#include "brave/components/text_recognition/common/buildflags/buildflags.h"
|
|
|
|
class Browser;
|
|
class SkBitmap;
|
|
|
|
namespace content {
|
|
class WebContents;
|
|
} // namespace content
|
|
|
|
namespace brave {
|
|
|
|
// Tab restore dialog will be launched after ask dialog is closed.
|
|
void ShowCrashReportPermissionAskDialog(Browser* browser);
|
|
|
|
// Run |callback| when dialog closed.
|
|
void ShowObsoleteSystemConfirmDialog(base::OnceCallback<void(bool)> callback);
|
|
|
|
#if BUILDFLAG(ENABLE_TEXT_RECOGNITION)
|
|
// Show web modal dialog for showing text that recognized from |image|.
|
|
void ShowTextRecognitionDialog(content::WebContents* web_contents,
|
|
const SkBitmap& image);
|
|
#endif
|
|
|
|
#if BUILDFLAG(ENABLE_BRAVE_VPN)
|
|
void ShowBraveVpnIKEv2FallbackDialog();
|
|
#endif
|
|
} // namespace brave
|
|
|
|
#endif // BRAVE_BROWSER_UI_BROWSER_DIALOGS_H_
|