#include "chrome/browser/ui/views/privacy_sandbox/privacy_sandbox_dialog_view.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/privacy_sandbox/privacy_sandbox_prompt.h"
#include "chrome/browser/ui/views/frame/app_menu_button.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_dialog_ui.h"
#include "chrome/common/webui_url_constants.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/web_modal/web_contents_modal_dialog_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "net/base/url_util.h"
#include "third_party/blink/public/common/page/page_zoom.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/views/layout/fill_layout.h"
namespace {
constexpr int kM1DialogWidth = …;
constexpr int kDefaultDialogHeight = …;
constexpr int kMinRequiredDialogHeight = …;
GURL GetDialogURL(PrivacySandboxService::PromptType prompt_type) { … }
int GetDialogWidth(PrivacySandboxService::PromptType prompt_type) { … }
class PrivacySandboxDialogDelegate : public views::DialogDelegate { … };
}
bool CanWindowHeightFitPrivacySandboxPrompt(Browser* browser) { … }
void ShowPrivacySandboxDialog(Browser* browser,
PrivacySandboxService::PromptType prompt_type) { … }
PrivacySandboxDialogView::PrivacySandboxDialogView(
Browser* browser,
PrivacySandboxService::PromptType prompt_type)
: … { … }
void PrivacySandboxDialogView::Close() { … }
void PrivacySandboxDialogView::ResizeNativeView(int height) { … }
void PrivacySandboxDialogView::ShowNativeView() { … }
void PrivacySandboxDialogView::OpenPrivacySandboxSettings() { … }
void PrivacySandboxDialogView::OpenPrivacySandboxAdMeasurementSettings() { … }
content::WebContents* PrivacySandboxDialogView::GetWebContentsForTesting() { … }
BEGIN_METADATA(…)