chromium/ui/views/controls/button/md_text_button.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/controls/button/md_text_button.h"

#include <algorithm>
#include <utility>
#include <vector>

#include "base/functional/bind.h"
#include "base/i18n/case_conversion.h"
#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "ui/actions/actions.h"
#include "ui/base/metadata/base_type_conversion.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/animation/flood_fill_ink_drop_ripple.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/animation/ink_drop_highlight.h"
#include "ui/views/animation/ink_drop_impl.h"
#include "ui/views/animation/ink_drop_painted_layer_delegates.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/controls/focus_ring.h"
#include "ui/views/controls/highlight_path_generator.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/painter.h"
#include "ui/views/style/platform_style.h"
#include "ui/views/style/typography.h"
#include "ui/views/style/typography_provider.h"
#include "ui/views/view_utils.h"

namespace views {

MdTextButton::MdTextButton(
    PressedCallback callback,
    const std::u16string& text,
    int button_context,
    bool use_text_color_for_icon,
    std::unique_ptr<LabelButtonImageContainer> image_container)
    :{}

MdTextButton::~MdTextButton() = default;

void MdTextButton::SetStyle(ui::ButtonStyle button_style) {}

ui::ButtonStyle MdTextButton::GetStyle() const {}

void MdTextButton::SetBgColorIdOverride(
    const std::optional<ui::ColorId> color_id) {}

void MdTextButton::SetBgColorOverrideDeprecated(
    const std::optional<SkColor>& color) {}

std::optional<SkColor> MdTextButton::GetBgColorOverrideDeprecated() const {}

std::optional<ui::ColorId> MdTextButton::GetBgColorIdOverride() const {}

void MdTextButton::SetCornerRadius(std::optional<float> radius) {}

std::optional<float> MdTextButton::GetCornerRadius() const {}

float MdTextButton::GetCornerRadiusValue() const {}

void MdTextButton::OnThemeChanged() {}

void MdTextButton::StateChanged(ButtonState old_state) {}

void MdTextButton::SetImageModel(
    ButtonState for_state,
    const std::optional<ui::ImageModel>& image_model) {}

void MdTextButton::OnFocus() {}

void MdTextButton::OnBlur() {}

void MdTextButton::OnBoundsChanged(const gfx::Rect& previous_bounds) {}

void MdTextButton::SetEnabledTextColors(std::optional<SkColor> color) {}

void MdTextButton::SetCustomPadding(const std::optional<gfx::Insets>& padding) {}

std::optional<gfx::Insets> MdTextButton::GetCustomPadding() const {}

void MdTextButton::SetText(const std::u16string& text) {}

PropertyEffects MdTextButton::UpdateStyleToIndicateDefaultStatus() {}

void MdTextButton::UpdatePadding() {}

gfx::Insets MdTextButton::CalculateDefaultPadding() const {}

void MdTextButton::UpdateTextColor() {}

void MdTextButton::UpdateBackgroundColor() {}

void MdTextButton::UpdateIconColor() {}

void MdTextButton::UpdateColors() {}

SkColor MdTextButton::GetHoverColor(ui::ButtonStyle button_style) {}

void MdTextButton::OnCornerRadiusValueChanged() {}

std::unique_ptr<ActionViewInterface> MdTextButton::GetActionViewInterface() {}

MdTextButtonActionViewInterface::MdTextButtonActionViewInterface(
    MdTextButton* action_view)
    :{}

void MdTextButtonActionViewInterface::ActionItemChangedImpl(
    actions::ActionItem* action_item) {}

BEGIN_METADATA()

}  // namespace views