blob: 6ae4fe48359353bf75b1dc45793759966a3c956d [file]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/base/test_theme_provider.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
TestThemeProvider::TestThemeProvider() = default;
TestThemeProvider::~TestThemeProvider() = default;
gfx::ImageSkia* TestThemeProvider::GetImageSkiaNamed(int id) const {
return nullptr;
}
color_utils::HSL TestThemeProvider::GetTint(int id) const {
return color_utils::HSL();
}
int TestThemeProvider::GetDisplayProperty(int id) const {
return -1;
}
bool TestThemeProvider::ShouldUseNativeFrame() const {
return false;
}
bool TestThemeProvider::HasCustomImage(int id) const {
return false;
}
base::RefCountedMemory* TestThemeProvider::GetRawData(
int id,
ui::ResourceScaleFactor scale_factor) const {
return nullptr;
}
void TestThemeProvider::SetColor(int id, SkColor color) {
colors_[id] = color;
}