#include "third_party/blink/renderer/core/layout/layout_theme_default.h"
#include "third_party/blink/public/common/renderer_preferences/renderer_preferences.h"
#include "third_party/blink/public/platform/web_theme_engine.h"
#include "third_party/blink/public/resources/grit/blink_resources.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/data_resource_helper.h"
#include "third_party/blink/renderer/platform/graphics/color.h"
#include "third_party/blink/renderer/platform/theme/web_theme_engine_helper.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "ui/base/ui_base_features.h"
namespace blink {
static const float kDefaultControlFontPixelSize = …;
static const float kDefaultCancelButtonSize = …;
static const float kMinCancelButtonSize = …;
static const float kMaxCancelButtonSize = …;
Color LayoutThemeDefault::active_selection_background_color_ = …;
Color LayoutThemeDefault::active_selection_foreground_color_ = …;
Color LayoutThemeDefault::inactive_selection_background_color_ = …;
Color LayoutThemeDefault::inactive_selection_foreground_color_ = …;
Color
LayoutThemeDefault::active_list_box_selection_background_color_dark_mode_ = …;
Color
LayoutThemeDefault::active_list_box_selection_foreground_color_dark_mode_ = …;
Color LayoutThemeDefault::
inactive_list_box_selection_background_color_dark_mode_ = …;
Color LayoutThemeDefault::
inactive_list_box_selection_foreground_color_dark_mode_ = …;
LayoutThemeDefault::LayoutThemeDefault() : … { … }
LayoutThemeDefault::~LayoutThemeDefault() = default;
String LayoutThemeDefault::ExtraDefaultStyleSheet() { … }
Color LayoutThemeDefault::PlatformActiveSelectionBackgroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformInactiveSelectionBackgroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformActiveSelectionForegroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformInactiveSelectionForegroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformActiveListBoxSelectionBackgroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformInactiveListBoxSelectionBackgroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformActiveListBoxSelectionForegroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
Color LayoutThemeDefault::PlatformInactiveListBoxSelectionForegroundColor(
mojom::blink::ColorScheme color_scheme) const { … }
gfx::Size LayoutThemeDefault::SliderTickSize() const { … }
int LayoutThemeDefault::SliderTickOffsetFromTrackCenter() const { … }
void LayoutThemeDefault::AdjustSliderThumbSize(
ComputedStyleBuilder& builder) const { … }
void LayoutThemeDefault::SetSelectionColors(Color active_background_color,
Color active_foreground_color,
Color inactive_background_color,
Color inactive_foreground_color) { … }
void LayoutThemeDefault::AdjustInnerSpinButtonStyle(
ComputedStyleBuilder& style) const { … }
Color LayoutThemeDefault::PlatformFocusRingColor() const { … }
void LayoutThemeDefault::AdjustButtonStyle(
ComputedStyleBuilder& builder) const { … }
void LayoutThemeDefault::AdjustSearchFieldCancelButtonStyle(
ComputedStyleBuilder& builder) const { … }
void LayoutThemeDefault::AdjustMenuListStyle(
ComputedStyleBuilder& builder) const { … }
void LayoutThemeDefault::AdjustMenuListButtonStyle(
ComputedStyleBuilder& builder) const { … }
int LayoutThemeDefault::PopupInternalPaddingStart(
const ComputedStyle& style) const { … }
int LayoutThemeDefault::PopupInternalPaddingEnd(
LocalFrame* frame,
const ComputedStyle& style) const { … }
int LayoutThemeDefault::PopupInternalPaddingTop(
const ComputedStyle& style) const { … }
int LayoutThemeDefault::PopupInternalPaddingBottom(
const ComputedStyle& style) const { … }
int LayoutThemeDefault::MenuListArrowWidthInDIP() const { … }
float LayoutThemeDefault::ClampedMenuListArrowPaddingSize(
LocalFrame* frame,
const ComputedStyle& style) const { … }
int LayoutThemeDefault::MenuListInternalPadding(const ComputedStyle& style,
int padding) const { … }
}