#include "ui/views/examples/text_example.h"
#include <memory>
#include <utility>
#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/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font_list.h"
#include "ui/views/accessibility/view_accessibility.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/examples/example_combobox_model.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/table_layout.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
namespace views::examples {
namespace {
constexpr int kNumColumns = …;
void SetFlagFromCheckbox(Checkbox* checkbox, int* flags, int flag) { … }
}
class TextExample::TextExampleView : public View { … };
BEGIN_METADATA(…)
END_METADATA
TextExample::TextExample()
: … { … }
TextExample::~TextExample() = default;
Checkbox* TextExample::AddCheckbox(View* parent, const char* name) { … }
Combobox* TextExample::AddCombobox(View* parent,
std::u16string name,
base::span<const char* const> items,
void (TextExample::*combobox_callback)()) { … }
void TextExample::CreateExampleView(View* container) { … }
void TextExample::UpdateStyle() { … }
void TextExample::AlignComboboxChanged() { … }
void TextExample::TextComboboxChanged() { … }
void TextExample::ElideComboboxChanged() { … }
void TextExample::PrefixComboboxChanged() { … }
void TextExample::WeightComboboxChanged() { … }
}