#include "chrome/browser/ui/views/extensions/extension_install_friction_dialog_view.h"
#include "base/functional/callback.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/referrer.h"
#include "extensions/browser/extension_dialog_auto_confirm.h"
#include "extensions/common/constants.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/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/color/color_id.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/layout_provider.h"
namespace {
void AutoConfirmDialog(base::OnceCallback<void(bool)> callback) { … }
}
namespace extensions {
void ShowExtensionInstallFrictionDialog(
content::WebContents* contents,
base::OnceCallback<void(bool)> callback) { … }
}
namespace {
enum class ExtensionInstallFrictionDialogAction { … };
void ReportExtensionInstallFrictionDialogAction(
ExtensionInstallFrictionDialogAction action) { … }
}
ExtensionInstallFrictionDialogView::ExtensionInstallFrictionDialogView(
content::WebContents* web_contents,
base::OnceCallback<void(bool)> callback)
: … { … }
std::unique_ptr<views::StyledLabel>
ExtensionInstallFrictionDialogView::CreateWarningLabel() { … }
ExtensionInstallFrictionDialogView::~ExtensionInstallFrictionDialogView() { … }
ui::ImageModel ExtensionInstallFrictionDialogView::GetWindowIcon() { … }
void ExtensionInstallFrictionDialogView::OnLearnMoreLinkClicked() { … }
void ExtensionInstallFrictionDialogView::ClickLearnMoreLinkForTesting() { … }
BEGIN_METADATA(…)