#include "chrome/browser/ui/views/passwords/credentials_item_view.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/passwords/ui_utils.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "components/affiliations/core/browser/affiliation_utils.h"
#include "components/password_manager/core/browser/password_manager_util.h"
#include "components/vector_icons/vector_icons.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/border.h"
#include "ui/views/bubble/tooltip_icon.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/view_class_properties.h"
namespace {
class CircularImageView : public views::ImageView { … };
void CircularImageView::OnPaint(gfx::Canvas* canvas) { … }
BEGIN_METADATA(…)
}
CredentialsItemView::CredentialsItemView(
PressedCallback callback,
const std::u16string& upper_text,
const std::u16string& lower_text,
const password_manager::PasswordForm* form,
network::mojom::URLLoaderFactory* loader_factory,
const url::Origin& initiator,
int upper_text_style,
int lower_text_style)
: … { … }
CredentialsItemView::~CredentialsItemView() = default;
void CredentialsItemView::UpdateAvatar(const gfx::ImageSkia& image) { … }
int CredentialsItemView::GetPreferredHeight() const { … }
void CredentialsItemView::OnPaintBackground(gfx::Canvas* canvas) { … }
BEGIN_METADATA(…)