#include "ui/views/controls/button/label_button_border.h"
#include <utility>
#include "cc/paint/paint_flags.h"
#include "ui/gfx/animation/animation.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/sys_color_change_listener.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/native_theme_delegate.h"
#include "ui/views/resources/grit/views_resources.h"
namespace views {
namespace {
constexpr int kTextHoveredImages[] = …;
constexpr int kTextPressedImages[] = …;
void PaintHelper(LabelButtonAssetBorder* border,
gfx::Canvas* canvas,
ui::NativeTheme::State state,
const gfx::Rect& rect,
const ui::NativeTheme::ExtraParams& extra) { … }
}
LabelButtonBorder::LabelButtonBorder() = default;
LabelButtonBorder::~LabelButtonBorder() = default;
bool LabelButtonBorder::PaintsButtonState(bool focused,
Button::ButtonState state) { … }
void LabelButtonBorder::Paint(const View& view, gfx::Canvas* canvas) { … }
gfx::Insets LabelButtonBorder::GetInsets() const { … }
gfx::Size LabelButtonBorder::GetMinimumSize() const { … }
LabelButtonAssetBorder::LabelButtonAssetBorder() { … }
LabelButtonAssetBorder::~LabelButtonAssetBorder() = default;
gfx::Insets LabelButtonAssetBorder::GetDefaultInsets() { … }
bool LabelButtonAssetBorder::PaintsButtonState(bool focused,
Button::ButtonState state) { … }
void LabelButtonAssetBorder::Paint(const View& view, gfx::Canvas* canvas) { … }
gfx::Size LabelButtonAssetBorder::GetMinimumSize() const { … }
Painter* LabelButtonAssetBorder::GetPainter(bool focused,
Button::ButtonState state) { … }
void LabelButtonAssetBorder::SetPainter(bool focused,
Button::ButtonState state,
std::unique_ptr<Painter> painter) { … }
}