#include "ui/views/examples/label_example.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/examples/example_combobox_model.h"
#include "ui/views/examples/examples_color_id.h"
#include "ui/views/examples/examples_themed_label.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/table_layout.h"
#include "ui/views/view.h"
ASCIIToUTF16;
namespace views::examples {
namespace {
constexpr auto kAlignments = …;
class ExamplePreferredSizeLabel : public Label { … };
BEGIN_METADATA(…)
constexpr auto kElideBehaviors = …;
}
LabelExample::LabelExample()
: … { … }
LabelExample::~LabelExample() { … }
void LabelExample::CreateExampleView(View* container) { … }
void LabelExample::MultilineCheckboxPressed() { … }
void LabelExample::ShadowsCheckboxPressed() { … }
void LabelExample::SelectableCheckboxPressed() { … }
void LabelExample::ContentsChanged(Textfield* sender,
const std::u16string& new_contents) { … }
void LabelExample::AddCustomLabel(View* container) { … }
Combobox* LabelExample::AddCombobox(View* parent,
std::u16string name,
base::span<const char* const> items,
void (LabelExample::*function)()) { … }
void LabelExample::AlignmentChanged() { … }
void LabelExample::ElidingChanged() { … }
void LabelExample::OnViewThemeChanged(View* observed_view) { … }
void LabelExample::OnViewIsDeleting(View* observed_view) { … }
}