#include "ui/views/style/typography_provider.h"
#include <map>
#include <string>
#include "base/check_op.h"
#include "base/containers/fixed_flat_map.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "ui/base/default_style.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/color_id.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/typography.h"
#if BUILDFLAG(IS_MAC)
#include "base/mac/mac_util.h"
#endif
namespace views {
namespace {
const gfx::FontList& GetFontForDetails(
const ui::ResourceBundle::FontDetails& details) { … }
gfx::Font::Weight GetValueBolderThan(gfx::Font::Weight weight) { … }
ui::ColorId GetDisabledColorId(int context) { … }
ui::ColorId GetMenuColorId(int style) { … }
ui::ColorId GetHintColorId(int context) { … }
}
const TypographyProvider& TypographyProvider::Get() { … }
const gfx::FontList& TypographyProvider::GetFont(int context, int style) const { … }
ui::ResourceBundle::FontDetails TypographyProvider::GetFontDetails(
int context,
int style) const { … }
ui::ColorId TypographyProvider::GetColorId(int context, int style) const { … }
int TypographyProvider::GetLineHeight(int context, int style) const { … }
gfx::Font::Weight TypographyProvider::MediumWeightForUI() { … }
bool TypographyProvider::StyleAllowedForContext(int context, int style) const { … }
ui::ResourceBundle::FontDetails TypographyProvider::GetFontDetailsImpl(
int context,
int style) const { … }
ui::ColorId TypographyProvider::GetColorIdImpl(int context, int style) const { … }
int TypographyProvider::GetLineHeightImpl(int context, int style) const { … }
void TypographyProvider::AssertContextAndStyleAreValid(int context,
int style) const { … }
}