#include "chrome/browser/ui/views/web_apps/protocol_handler_launch_dialog_view.h"
#include <memory>
#include <string>
#include <utility>
#include "chrome/browser/ui/web_applications/web_app_dialogs.h"
#include "chrome/grit/generated_resources.h"
#include "components/custom_handlers/protocol_handler.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/layout_provider.h"
namespace web_app {
ProtocolHandlerLaunchDialogView::ProtocolHandlerLaunchDialogView(
GURL url,
Profile* profile,
const webapps::AppId& app_id,
WebAppLaunchAcceptanceCallback close_callback)
: … { … }
ProtocolHandlerLaunchDialogView::~ProtocolHandlerLaunchDialogView() = default;
std::unique_ptr<views::View>
ProtocolHandlerLaunchDialogView::CreateAboveAppInfoView() { … }
std::unique_ptr<views::View>
ProtocolHandlerLaunchDialogView::CreateBelowAppInfoView() { … }
std::u16string ProtocolHandlerLaunchDialogView::GetRememberChoiceString() { … }
BEGIN_METADATA(…)
void ShowWebAppProtocolLaunchDialog(
const GURL& url,
Profile* profile,
const webapps::AppId& app_id,
WebAppLaunchAcceptanceCallback close_callback) { … }
}