chromium/chrome/browser/ui/views/commerce/ntp_discount_consent_dialog_view.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/commerce/ntp_discount_consent_dialog_view.h"

#include "base/functional/callback_helpers.h"
#include "chrome/browser/cart/chrome_cart.mojom.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/commerce/commerce_prompt.h"
#include "chrome/browser/ui/views/accessibility/theme_tracking_non_accessible_image_view.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/grit/theme_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"

namespace {
// TODO(crbug.com/40226507): These are approved one-off dialog style, we will
// migrate when this bug is resolved.
// Spacing between child of the Discount Consent Dialog View
constexpr int kChildSpacing =;
constexpr int kBannerImageTopMargin =;
constexpr int kBodyContainerHorizontalMargin =;
constexpr int kBodyContainerBottomMargin =;
}  // namespace

namespace commerce {
void ShowDiscountConsentPrompt(
    Browser* browser,
    base::OnceCallback<void(chrome_cart::mojom::ConsentStatus)> callback) {}
}  // namespace commerce

NtpDiscountConsentDialogView::NtpDiscountConsentDialogView(
    ActionCallback callback)
    :{}

NtpDiscountConsentDialogView::~NtpDiscountConsentDialogView() = default;

SkColor NtpDiscountConsentDialogView::GetBackgroundColor() {}

void NtpDiscountConsentDialogView::OnAccept() {}

void NtpDiscountConsentDialogView::OnReject() {}

void NtpDiscountConsentDialogView::OnDismiss() {}