#include "chrome/browser/ui/views/profiles/badged_profile_photo.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/profiles/profile_avatar_icon_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/controls/image_view.h"
namespace {
constexpr int kBadgeIconSize = …;
constexpr int kBadgeBorderWidth = …;
constexpr int kBadgeSpacing = …;
constexpr int kBadgedProfilePhotoWidth = …;
constexpr int kBadgedProfilePhotoHeight = …;
class CustomImageView : public views::ImageView { … };
BEGIN_METADATA(…)
void CustomImageView::OnPaint(gfx::Canvas* canvas) { … }
class BadgeView : public views::ImageView { … };
BEGIN_METADATA(…)
}
BadgedProfilePhoto::BadgedProfilePhoto(BadgeType badge_type,
const gfx::Image& profile_photo) { … }
BEGIN_METADATA(…)