// 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. #ifndef UI_COLOR_COLOR_ID_H_ #define UI_COLOR_COLOR_ID_H_ #include "base/check_op.h" #include "build/build_config.h" #include "build/buildflag.h" #include "build/chromeos_buildflags.h" // clang-format off #define CROSS_PLATFORM_COLOR_IDS … #if BUILDFLAG(IS_CHROMEOS_ASH) #define CHROMEOS_ASH_COLOR_IDS … #elif BUILDFLAG(IS_CHROMEOS_LACROS) #define CHROMEOS_ASH_COLOR_IDS #endif #if BUILDFLAG(IS_CHROMEOS) #define PLATFORM_SPECIFIC_COLOR_IDS … #elif BUILDFLAG(IS_LINUX) #define PLATFORM_SPECIFIC_COLOR_IDS … #elif BUILDFLAG(IS_WIN) #define PLATFORM_SPECIFIC_COLOR_IDS … #else #define PLATFORM_SPECIFIC_COLOR_IDS #endif #define COLOR_IDS … // clang-format on namespace ui { #include "ui/color/color_id_macros.inc" // ColorId contains identifiers for all input, intermediary, and output colors // known to the core UI layer. Embedders can extend this enum with additional // values that are understood by the ColorProvider implementation. Embedders // define enum values from kUiColorsEnd. Values named beginning with "kColor" // represent the actual colors; the rest are markers. ColorId; // clang-format off enum ColorIds : ColorId { … }; // 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" // NOLINT(build/include) } // namespace ui #endif // UI_COLOR_COLOR_ID_H_