#include "components/user_education/views/new_badge_label.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/text_utils.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/badge_painter.h"
#include "ui/views/border.h"
#include "ui/views/metadata/type_conversion.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
namespace user_education {
NewBadgeLabel::NewBadgeLabel(const std::u16string& text,
int text_context,
int text_style,
gfx::DirectionalityMode directionality_mode)
: … { … }
NewBadgeLabel::NewBadgeLabel(const std::u16string& text, const CustomFont& font)
: … { … }
NewBadgeLabel::~NewBadgeLabel() = default;
void NewBadgeLabel::SetDisplayNewBadge(DisplayNewBadge display_new_badge) { … }
void NewBadgeLabel::SetDisplayNewBadgeForTesting(bool display_new_badge) { … }
void NewBadgeLabel::SetDisplayNewBadgeImpl(bool display_new_badge) { … }
void NewBadgeLabel::SetPadAfterNewBadge(bool pad_after_new_badge) { … }
void NewBadgeLabel::SetBadgePlacement(BadgePlacement badge_placement) { … }
void NewBadgeLabel::GetAccessibleNodeData(ui::AXNodeData* node_data) { … }
gfx::Size NewBadgeLabel::CalculatePreferredSize(
const views::SizeBounds& available_size) const { … }
gfx::Size NewBadgeLabel::GetMinimumSize() const { … }
void NewBadgeLabel::OnDeviceScaleFactorChanged(float old_device_scale_factor,
float new_device_scale_factor) { … }
void NewBadgeLabel::OnPaint(gfx::Canvas* canvas) { … }
void NewBadgeLabel::UpdatePaddingForNewBadge() { … }
gfx::Size NewBadgeLabel::GetNewBadgeSize() const { … }
std::u16string NewBadgeLabel::GetAccessibleDescription() const { … }
void NewBadgeLabel::SetBorder(std::unique_ptr<views::Border> b) { … }
BEGIN_METADATA(…)
}
DEFINE_ENUM_CONVERTERS(…)