1cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
2cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// found in the LICENSE file.
4cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
5cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
6cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
7cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
8cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#include "ipc/ipc_message_macros.h"
9cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#include "ui/events/events_export.h"
10cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#include "ui/events/latency_info.h"
11cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
12cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#undef IPC_MESSAGE_EXPORT
13cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#define IPC_MESSAGE_EXPORT EVENTS_EXPORT
14cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
15cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType,
16cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)                          ui::LATENCY_COMPONENT_TYPE_LAST)
17cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
18cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent)
19cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  IPC_STRUCT_TRAITS_MEMBER(sequence_number)
20cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  IPC_STRUCT_TRAITS_MEMBER(event_time)
21cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  IPC_STRUCT_TRAITS_MEMBER(event_count)
22cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)IPC_STRUCT_TRAITS_END()
23cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
241320f92c476a1ad9d19dba2a48c72b75566198e9Primiano TucciIPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::InputCoordinate)
251320f92c476a1ad9d19dba2a48c72b75566198e9Primiano TucciIPC_STRUCT_TRAITS_MEMBER(x)
261320f92c476a1ad9d19dba2a48c72b75566198e9Primiano TucciIPC_STRUCT_TRAITS_MEMBER(y)
271320f92c476a1ad9d19dba2a48c72b75566198e9Primiano TucciIPC_STRUCT_TRAITS_END()
281320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
29cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo)
30cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  IPC_STRUCT_TRAITS_MEMBER(latency_components)
31cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  IPC_STRUCT_TRAITS_MEMBER(trace_id)
32cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)  IPC_STRUCT_TRAITS_MEMBER(terminated)
331320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  IPC_STRUCT_TRAITS_MEMBER(input_coordinates_size)
341320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  IPC_STRUCT_TRAITS_MEMBER(input_coordinates[0])
351320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  IPC_STRUCT_TRAITS_MEMBER(input_coordinates[1])
36cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)IPC_STRUCT_TRAITS_END()
37cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
38cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
39