chromium/ui/display/mojom/display_constants_mojom_traits.h

// Copyright 2017 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_DISPLAY_MOJOM_DISPLAY_CONSTANTS_MOJOM_TRAITS_H_
#define UI_DISPLAY_MOJOM_DISPLAY_CONSTANTS_MOJOM_TRAITS_H_

#include "ui/display/mojom/display_constants.mojom.h"
#include "ui/display/types/display_constants.h"

namespace mojo {

template <>
struct EnumTraits<display::mojom::DisplayConnectionType,
                  display::DisplayConnectionType> {};

template <>
struct EnumTraits<display::mojom::HDCPState, display::HDCPState> {};

template <>
struct EnumTraits<display::mojom::ContentProtectionMethod,
                  display::ContentProtectionMethod> {};

template <>
struct EnumTraits<display::mojom::PanelOrientation, display::PanelOrientation> {};

template <>
struct EnumTraits<display::mojom::PrivacyScreenState,
                  display::PrivacyScreenState> {};

template <>
struct EnumTraits<display::mojom::VariableRefreshRateState,
                  display::VariableRefreshRateState> {};

template <>
struct StructTraits<display::mojom::ModesetFlagsDataView,
                    display::ModesetFlags> {};

}  // namespace mojo

#endif  // UI_DISPLAY_MOJOM_DISPLAY_CONSTANTS_MOJOM_TRAITS_H_