#include "ui/views/layout/layout_provider.h"
#include <algorithm>
#include "base/containers/fixed_flat_map.h"
#include "base/logging.h"
#include "ui/base/ui_base_features.h"
#include "ui/gfx/font_list.h"
#include "ui/views/controls/focus_ring.h"
#include "ui/views/style/typography_provider.h"
#include "ui/views/views_delegate.h"
namespace views {
namespace {
LayoutProvider* g_layout_delegate = …;
}
LayoutProvider::LayoutProvider() { … }
LayoutProvider::~LayoutProvider() { … }
LayoutProvider* LayoutProvider::Get() { … }
int LayoutProvider::GetControlHeightForFont(int context,
int style,
const gfx::FontList& font) { … }
gfx::Insets LayoutProvider::GetInsetsMetric(int metric) const { … }
int LayoutProvider::GetDistanceMetric(int metric) const { … }
const TypographyProvider& LayoutProvider::GetTypographyProvider() const { … }
int LayoutProvider::GetSnappedDialogWidth(int min_width) const { … }
gfx::Insets LayoutProvider::GetDialogInsetsForContentType(
DialogContentType leading,
DialogContentType trailing) const { … }
int LayoutProvider::GetCornerRadiusMetric(Emphasis emphasis,
const gfx::Size& size) const { … }
ShapeSysTokens GetShapeSysToken(ShapeContextTokens id) { … }
int LayoutProvider::GetCornerRadiusMetric(ShapeContextTokens id,
const gfx::Size& size) const { … }
int LayoutProvider::GetShadowElevationMetric(Emphasis emphasis) const { … }
}