#include "ui/views/controls/theme_tracking_image_view.h"
#include "base/functional/callback.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/native_theme/native_theme.h"
namespace views {
ThemeTrackingImageView::ThemeTrackingImageView(
const ui::ImageModel& light_image_model,
const ui::ImageModel& dark_image_model,
const base::RepeatingCallback<SkColor()>& get_background_color_callback)
: … { … }
ThemeTrackingImageView::ThemeTrackingImageView(
const gfx::ImageSkia& light_image,
const gfx::ImageSkia& dark_image,
const base::RepeatingCallback<SkColor()>& get_background_color_callback)
: … { … }
ThemeTrackingImageView::~ThemeTrackingImageView() = default;
void ThemeTrackingImageView::OnThemeChanged() { … }
void ThemeTrackingImageView::SetLightImage(
const ui::ImageModel& light_image_model) { … }
void ThemeTrackingImageView::SetDarkImage(
const ui::ImageModel& dark_image_model) { … }
BEGIN_METADATA(…)
}