#include "chrome/browser/themes/theme_service.h"
#include "base/feature_list.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/themes/browser_theme_pack.h"
#include "chrome/browser/themes/custom_theme_supplier.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/common/chrome_features.h"
#include "chrome/grit/theme_resources.h"
#include "components/grit/components_scaled_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
#include "ui/native_theme/native_theme.h"
#if BUILDFLAG(IS_LINUX)
#include "ui/linux/linux_ui.h"
#endif
namespace {
TP;
constexpr char kDefaultThemeGalleryID[] = …;
}
const char ThemeHelper::kDefaultThemeID[] = …;
bool ThemeHelper::IsExtensionTheme(const CustomThemeSupplier* theme_supplier) { … }
bool ThemeHelper::IsAutogeneratedTheme(
const CustomThemeSupplier* theme_supplier) { … }
bool ThemeHelper::IsDefaultTheme(const CustomThemeSupplier* theme_supplier) { … }
bool ThemeHelper::IsCustomTheme(const CustomThemeSupplier* theme_supplier) { … }
bool ThemeHelper::HasCustomImage(int id,
const CustomThemeSupplier* theme_supplier) { … }
ThemeHelper::ThemeHelper() = default;
ThemeHelper::~ThemeHelper() { … }
int ThemeHelper::GetDisplayProperty(
int id,
const CustomThemeSupplier* theme_supplier) const { … }
base::RefCountedMemory* ThemeHelper::GetRawData(
int id,
const CustomThemeSupplier* theme_supplier,
ui::ResourceScaleFactor scale_factor) const { … }
color_utils::HSL ThemeHelper::GetTint(
int id,
bool incognito,
const CustomThemeSupplier* theme_supplier) const { … }
gfx::ImageSkia* ThemeHelper::GetImageSkiaNamed(
int id,
bool incognito,
const CustomThemeSupplier* theme_supplier) const { … }
bool ThemeHelper::ShouldUseNativeFrame(
const CustomThemeSupplier* theme_supplier) const { … }
int ThemeHelper::GetDefaultDisplayProperty(int id) const { … }
bool ThemeHelper::UseDarkModeColors(const CustomThemeSupplier* theme_supplier) { … }
gfx::Image ThemeHelper::GetImageNamed(
int id,
bool incognito,
const CustomThemeSupplier* theme_supplier) const { … }