chromium/third_party/blink/public/common/renderer_preferences/renderer_preferences.h

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

#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_RENDERER_PREFERENCES_RENDERER_PREFERENCES_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_RENDERER_PREFERENCES_RENDERER_PREFERENCES_H_

#include <stdint.h>

#include <optional>
#include <string>
#include <vector>

#include "base/time/time.h"
#include "build/build_config.h"
#include "third_party/blink/public/common/common_export.h"
#include "third_party/blink/public/common/user_agent/user_agent_metadata.h"
#include "ui/gfx/font_render_params.h"

namespace blink {

// Note: these must match the values in renderer_preferences.mojom.
constexpr uint32_t kDefaultActiveSelectionBgColor =;
#if BUILDFLAG(IS_ANDROID)
// See crbug.com/1445053, but on Android, the selection background color is
// not used, and a much lighter shade of blue is used instead. Therefore, the
// foreground color needs to be dark/black to ensure contrast.
constexpr uint32_t kDefaultActiveSelectionFgColor = 0xFF000000;
#else
constexpr uint32_t kDefaultActiveSelectionFgColor =;
#endif
constexpr uint32_t kDefaultInactiveSelectionBgColor =;
constexpr uint32_t kDefaultInactiveSelectionFgColor =;

// User preferences passed between the browser and renderer processes.
// See //third_party/blink/public/mojom/renderer_preferences.mojom for a
// description of what each field is about.
struct BLINK_COMMON_EXPORT RendererPreferences {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_PUBLIC_COMMON_RENDERER_PREFERENCES_RENDERER_PREFERENCES_H_