#include "third_party/blink/renderer/core/paint/paint_auto_dark_mode.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
#include "ui/display/screen_info.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace blink {
namespace {
constexpr float kMaxIconRatio = …;
constexpr int kMaxImageLength = …;
constexpr int kMaxImageSeparatorLength = …;
DarkModeFilter::ImageType GetImageType(float dest_to_device_ratio,
const gfx::Rect& dest_rect,
const gfx::Rect& src_rect) { … }
float GetRatio(const display::ScreenInfo& screen_info,
const gfx::RectF& dest_rect) { … }
}
ImageAutoDarkMode ImageClassifierHelper::GetImageAutoDarkMode(
LocalFrame& local_frame,
const ComputedStyle& style,
const gfx::RectF& dest_rect,
const gfx::RectF& src_rect,
DarkModeFilter::ElementRole role) { … }
DarkModeFilter::ImageType ImageClassifierHelper::GetImageTypeForTesting(
display::ScreenInfo& screen_info,
const gfx::RectF& dest_rect,
const gfx::RectF& src_rect) { … }
}