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

// Copyright 2024 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/discounts_coupon_code_label_view.h"

#include <utility>

#include "base/strings/strcat.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/clipboard/clipboard_buffer.h"
#include "ui/base/clipboard/scoped_clipboard_writer.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/flex_layout_types.h"

const int kContentCopyIconSizePx =;
const int kInteriorMarginPx =;
const int kPromoCodeMaxWidthPx =;
const int kPromoCodeLabelLeftMarginPx =;
const int kPromoCodeLabelRightMarginPx =;

DEFINE_ELEMENT_IDENTIFIER_VALUE(kDiscountsBubbleCopyButtonElementId);

DiscountsCouponCodeLabelView::DiscountsCouponCodeLabelView(
    const std::u16string& promo_code_text,
    base::RepeatingClosure copy_button_clicked_callback)
    :{}

DiscountsCouponCodeLabelView::~DiscountsCouponCodeLabelView() = default;

void DiscountsCouponCodeLabelView::UpdateCopyButtonTooltipsAndAccessibleNames(
    std::u16string tooltip) {}

void DiscountsCouponCodeLabelView::OnThemeChanged() {}

gfx::Size DiscountsCouponCodeLabelView::CalculatePreferredSize(
    const views::SizeBounds& available_size) const {}

void DiscountsCouponCodeLabelView::OnCopyButtonClicked() {}

BEGIN_METADATA()