chromium/ui/color/color_id.mojom

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

module color.mojom;

// Color Ids that are used for renderer-specific code. These map directly to
// ui::ColorIds and help ensure that the renderer only receives this well
// defined subset of colors. If changing this you must also update the mapping
// in color_provider_utils.cc.
enum RendererColorId {
  kColorCssSystemBtnFace,
  kColorCssSystemBtnText,
  kColorCssSystemGrayText,
  kColorCssSystemHighlight,
  kColorCssSystemHighlightText,
  kColorCssSystemHotlight,
  kColorCssSystemMenuHilight,
  kColorCssSystemScrollbar,
  kColorCssSystemWindow,
  kColorCssSystemWindowText,
  kColorMenuBackground,
  kColorMenuItemBackgroundSelected,
  kColorMenuSeparator,
  kColorOverlayScrollbarFill,
  kColorOverlayScrollbarFillHovered,
  kColorOverlayScrollbarStroke,
  kColorOverlayScrollbarStrokeHovered,
  kColorWebNativeControlAccent,
  kColorWebNativeControlAccentDisabled,
  kColorWebNativeControlAccentHovered,
  kColorWebNativeControlAccentPressed,
  kColorWebNativeControlAutoCompleteBackground,
  kColorWebNativeControlBackground,
  kColorWebNativeControlBackgroundDisabled,
  kColorWebNativeControlBorder,
  kColorWebNativeControlBorderDisabled,
  kColorWebNativeControlBorderHovered,
  kColorWebNativeControlBorderPressed,
  kColorWebNativeControlButtonBorder,
  kColorWebNativeControlButtonBorderDisabled,
  kColorWebNativeControlButtonBorderHovered,
  kColorWebNativeControlButtonBorderPressed,
  kColorWebNativeControlButtonFill,
  kColorWebNativeControlButtonFillDisabled,
  kColorWebNativeControlButtonFillHovered,
  kColorWebNativeControlButtonFillPressed,
  kColorWebNativeControlFill,
  kColorWebNativeControlFillDisabled,
  kColorWebNativeControlFillHovered,
  kColorWebNativeControlFillPressed,
  kColorWebNativeControlLightenLayer,
  kColorWebNativeControlProgressValue,
  kColorWebNativeControlScrollbarArrowBackgroundHovered,
  kColorWebNativeControlScrollbarArrowBackgroundPressed,
  kColorWebNativeControlScrollbarArrowForeground,
  kColorWebNativeControlScrollbarArrowForegroundPressed,
  kColorWebNativeControlScrollbarCorner,
  kColorWebNativeControlScrollbarThumb,
  kColorWebNativeControlScrollbarThumbHovered,
  kColorWebNativeControlScrollbarThumbInactive,
  kColorWebNativeControlScrollbarThumbOverlayMinimalMode,
  kColorWebNativeControlScrollbarThumbPressed,
  kColorWebNativeControlScrollbarTrack,
  kColorWebNativeControlSlider,
  kColorWebNativeControlSliderDisabled,
  kColorWebNativeControlSliderHovered,
  kColorWebNativeControlSliderPressed,
};