#include "chrome/browser/ui/views/webauthn/hover_list_view.h"
#include <algorithm>
#include <utility>
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/browser/ui/views/webauthn/webauthn_hover_button.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/separator.h"
#include "ui/views/controls/throbber.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
namespace {
std::unique_ptr<WebAuthnHoverButton> CreateHoverButtonForListItem(
const ui::ImageModel& icon,
std::u16string item_title,
std::u16string item_description,
bool enabled,
views::Button::PressedCallback callback) { … }
}
HoverListView::HoverListView(std::unique_ptr<HoverListModel> model)
: … { … }
HoverListView::~HoverListView() = default;
void HoverListView::AppendListItemView(const ui::ImageModel& icon,
std::u16string item_text,
std::u16string description_text,
bool enabled,
int item_tag) { … }
views::Button& HoverListView::GetTopListItemView() const { … }
void HoverListView::RequestFocus() { … }
int HoverListView::GetPreferredViewHeight() const { … }
BEGIN_METADATA(…)