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

#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_BNPL_ISSUER_LINKED_PILL_H_
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_BNPL_ISSUER_LINKED_PILL_H_

#include "ui/base/interaction/element_identifier.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/controls/label.h"
#include "ui/views/metadata/view_factory.h"

namespace autofill::payments {

class BnplLinkedIssuerPill : public views::Label {
 public:
  DECLARE_CLASS_ELEMENT_IDENTIFIER_VALUE(kBnplLinkedPillElementId);

  METADATA_HEADER(BnplLinkedIssuerPill, views::Label)

 public:
  BnplLinkedIssuerPill();
  BnplLinkedIssuerPill(const BnplLinkedIssuerPill&) = delete;
  BnplLinkedIssuerPill& operator=(const BnplLinkedIssuerPill&) = delete;
  ~BnplLinkedIssuerPill() override;

  // views::View overrides.
  void AddedToWidget() override;

  // Returns the view description for accessibility message, which will be read
  // when this view is focused by a screenreader.
  std::u16string GetAccessibilityDescription();
};

BEGIN_VIEW_BUILDER(, BnplLinkedIssuerPill, views::Label)
END_VIEW_BUILDER

}  // namespace autofill::payments

DEFINE_VIEW_BUILDER(, autofill::payments::BnplLinkedIssuerPill)

#endif  // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PAYMENTS_BNPL_ISSUER_LINKED_PILL_H_
