#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_SELECTION_TYPES_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_SELECTION_TYPES_H_
#include <algorithm>
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/hash_table_deleted_value_type.h"
#include "third_party/blink/renderer/platform/wtf/hash_traits.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
class PLATFORM_EXPORT FontSelectionValue { … };
inline constexpr FontSelectionValue FontSelectionValue::operator+(
const FontSelectionValue& other) const { … }
inline constexpr FontSelectionValue FontSelectionValue::operator-(
const FontSelectionValue& other) const { … }
inline constexpr FontSelectionValue FontSelectionValue::operator*(
const FontSelectionValue& other) const { … }
inline constexpr FontSelectionValue FontSelectionValue::operator/(
const FontSelectionValue& other) const { … }
inline constexpr FontSelectionValue FontSelectionValue::operator-() const { … }
inline constexpr bool FontSelectionValue::operator==(
const FontSelectionValue& other) const { … }
inline constexpr bool FontSelectionValue::operator!=(
const FontSelectionValue& other) const { … }
inline constexpr bool FontSelectionValue::operator<(
const FontSelectionValue& other) const { … }
inline constexpr bool FontSelectionValue::operator<=(
const FontSelectionValue& other) const { … }
inline constexpr bool FontSelectionValue::operator>(
const FontSelectionValue& other) const { … }
inline constexpr bool FontSelectionValue::operator>=(
const FontSelectionValue& other) const { … }
inline constexpr FontSelectionValue kItalicThreshold = …;
static constexpr inline bool isItalic(FontSelectionValue fontStyle) { … }
inline constexpr FontSelectionValue kFontSelectionZeroValue = …;
inline constexpr FontSelectionValue kNormalSlopeValue = …;
inline constexpr FontSelectionValue kItalicSlopeValue = …;
inline constexpr FontSelectionValue kMaxObliqueValue = …;
inline constexpr FontSelectionValue kMinObliqueValue = …;
inline constexpr FontSelectionValue kBoldThreshold = …;
inline constexpr FontSelectionValue kMinWeightValue = …;
inline constexpr FontSelectionValue kMaxWeightValue = …;
inline constexpr FontSelectionValue kBlackWeightValue = …;
inline constexpr FontSelectionValue kExtraBoldWeightValue = …;
inline constexpr FontSelectionValue kBoldWeightValue = …;
inline constexpr FontSelectionValue kSemiBoldWeightValue = …;
inline constexpr FontSelectionValue kMediumWeightValue = …;
inline constexpr FontSelectionValue kNormalWeightValue = …;
inline constexpr FontSelectionValue kLightWeightValue = …;
inline constexpr FontSelectionValue kExtraLightWeightValue = …;
inline constexpr FontSelectionValue kThinWeightValue = …;
static constexpr inline bool isFontWeightBold(FontSelectionValue fontWeight) { … }
inline constexpr FontSelectionValue kUpperWeightSearchThreshold = …;
inline constexpr FontSelectionValue kLowerWeightSearchThreshold = …;
inline constexpr FontSelectionValue kUltraCondensedWidthValue = …;
inline constexpr FontSelectionValue kExtraCondensedWidthValue = …;
inline constexpr FontSelectionValue kCondensedWidthValue = …;
inline constexpr FontSelectionValue kSemiCondensedWidthValue = …;
inline constexpr FontSelectionValue kNormalWidthValue = …;
inline constexpr FontSelectionValue kSemiExpandedWidthValue = …;
inline constexpr FontSelectionValue kExpandedWidthValue = …;
inline constexpr FontSelectionValue kExtraExpandedWidthValue = …;
inline constexpr FontSelectionValue kUltraExpandedWidthValue = …;
struct FontSelectionRange { … };
struct PLATFORM_EXPORT FontSelectionRequest { … };
struct FontSelectionRequestKey { … };
struct PLATFORM_EXPORT FontSelectionRequestKeyHashTraits
: SimpleClassHashTraits<FontSelectionRequestKey> { … };
struct FontSelectionCapabilities { … };
struct PLATFORM_EXPORT FontSelectionCapabilitiesHashTraits
: SimpleClassHashTraits<FontSelectionCapabilities> { … };
}
namespace WTF {
template <>
struct HashTraits<blink::FontSelectionRequestKey>
: blink::FontSelectionRequestKeyHashTraits { … };
template <>
struct HashTraits<blink::FontSelectionCapabilities>
: blink::FontSelectionCapabilitiesHashTraits { … };
}
template <>
inline blink::FontSelectionValue
DefaultMinimumForClamp<blink::FontSelectionValue>() { … }
template <>
inline blink::FontSelectionValue
DefaultMaximumForClamp<blink::FontSelectionValue>() { … }
#endif