#include "ui/views/examples/colors_example.h"
#include <stdint.h>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include "base/strings/stringprintf.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/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/views/background.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/table_layout.h"
namespace views::examples {
namespace {
#define COLOR_LABEL_ARGS(label) …
void InsertColorRow(View* parent,
std::u16string_view label_string,
ui::ColorId color_id) { … }
void CreateAllColorsView(ScrollView* scroll_view) { … }
class AllColorsScrollView : public ScrollView { … };
BEGIN_METADATA(…)
}
ColorsExample::ColorsExample()
: … { … }
ColorsExample::~ColorsExample() = default;
void ColorsExample::CreateExampleView(View* container) { … }
}