chromium/ui/gfx/geometry/mojom/geometry_mojom_traits.h

// Copyright 2016 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_GFX_GEOMETRY_MOJOM_GEOMETRY_MOJOM_TRAITS_H_
#define UI_GFX_GEOMETRY_MOJOM_GEOMETRY_MOJOM_TRAITS_H_

#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point3_f.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/quad_f.h"
#include "ui/gfx/geometry/quaternion.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/size_f.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/geometry/vector2d_f.h"
#include "ui/gfx/geometry/vector3d_f.h"

namespace mojo {

template <>
struct StructTraits<gfx::mojom::InsetsDataView, gfx::Insets> {};

template <>
struct StructTraits<gfx::mojom::InsetsFDataView, gfx::InsetsF> {};

template <>
struct StructTraits<gfx::mojom::PointDataView, gfx::Point> {};

template <>
struct StructTraits<gfx::mojom::PointFDataView, gfx::PointF> {};

template <>
struct StructTraits<gfx::mojom::Point3FDataView, gfx::Point3F> {};

template <>
struct StructTraits<gfx::mojom::RectDataView, gfx::Rect> {};

template <>
struct StructTraits<gfx::mojom::RectFDataView, gfx::RectF> {};

template <>
struct StructTraits<gfx::mojom::SizeDataView, gfx::Size> {};

template <>
struct StructTraits<gfx::mojom::SizeFDataView, gfx::SizeF> {};

template <>
struct StructTraits<gfx::mojom::Vector2dDataView, gfx::Vector2d> {};

template <>
struct StructTraits<gfx::mojom::Vector2dFDataView, gfx::Vector2dF> {};

template <>
struct StructTraits<gfx::mojom::Vector3dFDataView, gfx::Vector3dF> {};

template <>
struct StructTraits<gfx::mojom::QuaternionDataView, gfx::Quaternion> {};

template <>
struct StructTraits<gfx::mojom::QuadFDataView, gfx::QuadF> {};

}  // namespace mojo

#endif  // UI_GFX_GEOMETRY_MOJOM_GEOMETRY_MOJOM_TRAITS_H_