chromium/ui/display/mojom/display_layout_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_LAYOUT_MOJOM_TRAITS_H_
#define UI_DISPLAY_MOJOM_DISPLAY_LAYOUT_MOJOM_TRAITS_H_

#include <memory>
#include <vector>

#include "ui/display/display_layout.h"
#include "ui/display/mojom/display_layout.mojom.h"

namespace mojo {

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

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

template <>
struct StructTraits<display::mojom::DisplayPlacementDataView,
                    display::DisplayPlacement> {};

template <>
struct StructTraits<display::mojom::DisplayLayoutDataView,
                    std::unique_ptr<display::DisplayLayout>> {};

}  // namespace mojo

#endif  // UI_DISPLAY_MOJOM_DISPLAY_LAYOUT_MOJOM_TRAITS_H_