chromium/chrome/browser/ui/color/tools/dump_colors.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

// This command-line program dumps the computed values of all color IDs to
// stdout.

#include <iomanip>
#include <ios>
#include <iostream>
#include <string>

#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/color/chrome_color_mixers.h"
#include "components/color/color_mixers.h"
#include "ui/color/color_mixers.h"
#include "ui/color/color_provider.h"
#include "ui/color/color_provider_utils.h"

#define STRINGIZE_COLOR_IDS
#include "ui/color/color_id_macros.inc"

// clang-format off
const char* enum_names[] =;
// clang-format on

// Note that this second include is not redundant. The second inclusion of the
// .inc file serves to undefine the macros the first inclusion defined.
#include "ui/color/color_id_macros.inc"

// Longest color name, plus a space.  Currently, "SK_ColorTRANSPARENT ".
constexpr size_t kColorColumnWidth =;

std::string SkColorToString(SkColor color) {}

int main(int argc, const char* argv[]) {}