chromium/ui/latency/mojom/latency_info_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_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_
#define UI_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_

#include "base/component_export.h"
#include "ui/latency/latency_info.h"
#include "ui/latency/mojom/latency_info.mojom-shared.h"

namespace mojo {

static_assert;

template <>
struct COMPONENT_EXPORT(LATENCY_SHARED_MOJOM_TRAITS)
    ArrayTraits<ui::LatencyInfo::LatencyMap> {};

template <>
struct COMPONENT_EXPORT(LATENCY_SHARED_MOJOM_TRAITS)
    StructTraits<ui::mojom::LatencyInfoDataView, ui::LatencyInfo> {};

template <>
struct COMPONENT_EXPORT(LATENCY_SHARED_MOJOM_TRAITS)
    EnumTraits<ui::mojom::LatencyComponentType, ui::LatencyComponentType> {};

}  // namespace mojo

#endif  // UI_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_