chromium/third_party/blink/renderer/core/layout/layout_theme_default.cc

/*
 * Copyright (C) 2007 Apple Inc.
 * Copyright (C) 2007 Alp Toker <[email protected]>
 * Copyright (C) 2008 Collabora Ltd.
 * Copyright (C) 2008, 2009 Google Inc.
 * Copyright (C) 2009 Kenneth Rohde Christiansen
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 *
 */

#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 {

// These values all match Safari/Win.
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;

// Use the Windows style sheets to match their metrics.
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 {}

// The following internal paddings are in addition to the user-supplied padding.
// Matches the Firefox behavior.

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 {}

}  // namespace blink