#include "chrome/common/extensions/manifest_handlers/theme_handler.h"
#include <memory>
#include "base/files/file_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
keys;
errors;
namespace {
bool LoadImages(const base::Value::Dict& theme_dict,
std::u16string* error,
ThemeInfo* theme_info) { … }
bool LoadColors(const base::Value::Dict& theme_dict,
std::u16string* error,
ThemeInfo* theme_info) { … }
bool LoadTints(const base::Value::Dict& theme_dict,
std::u16string* error,
ThemeInfo* theme_info) { … }
bool LoadDisplayProperties(const base::Value::Dict& theme_dict,
std::u16string* error,
ThemeInfo* theme_info) { … }
const ThemeInfo* GetInfo(const Extension* extension) { … }
}
ThemeInfo::ThemeInfo() { … }
ThemeInfo::~ThemeInfo() { … }
const base::Value::Dict* ThemeInfo::GetImages(const Extension* extension) { … }
const base::Value::Dict* ThemeInfo::GetColors(const Extension* extension) { … }
const base::Value::Dict* ThemeInfo::GetTints(const Extension* extension) { … }
const base::Value::Dict* ThemeInfo::GetDisplayProperties(
const Extension* extension) { … }
ThemeHandler::ThemeHandler() { … }
ThemeHandler::~ThemeHandler() { … }
bool ThemeHandler::Parse(Extension* extension, std::u16string* error) { … }
bool ThemeHandler::Validate(const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) const { … }
base::span<const char* const> ThemeHandler::Keys() const { … }
}