chromium/third_party/blink/renderer/platform/graphics/dark_mode_color_classifier.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/graphics/dark_mode_color_classifier.h"

#include "base/check_op.h"

namespace blink {
namespace {

class SimpleColorClassifier : public DarkModeColorClassifier {};

class InvertLowBrightnessColorsClassifier : public DarkModeColorClassifier {};

class InvertHighBrightnessColorsClassifier : public DarkModeColorClassifier {};

}  // namespace

// Based on this algorithm suggested by the W3:
// https://www.w3.org/TR/AERT/#color-contrast
//
// We don't use HSL or HSV here because perceived brightness is a function of
// hue as well as lightness/value.
int DarkModeColorClassifier::CalculateColorBrightness(SkColor color) {}

std::unique_ptr<DarkModeColorClassifier>
DarkModeColorClassifier::MakeForegroundColorClassifier(
    const DarkModeSettings& settings) {}

std::unique_ptr<DarkModeColorClassifier>
DarkModeColorClassifier::MakeBackgroundColorClassifier(
    const DarkModeSettings& settings) {}

DarkModeColorClassifier::~DarkModeColorClassifier() {}

}  // namespace blink