Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: ui/events/ipc/latency_info_param_traits.h

Issue 569653002: Add input coordinate information to InputLatency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use uint32 instead of size_t to unbreak IPC. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | ui/events/latency_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ 5 #ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
6 #define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ 6 #define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "ui/events/events_export.h" 9 #include "ui/events/events_export.h"
10 #include "ui/events/latency_info.h" 10 #include "ui/events/latency_info.h"
11 11
12 #undef IPC_MESSAGE_EXPORT 12 #undef IPC_MESSAGE_EXPORT
13 #define IPC_MESSAGE_EXPORT EVENTS_EXPORT 13 #define IPC_MESSAGE_EXPORT EVENTS_EXPORT
14 14
15 IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType, 15 IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType,
16 ui::LATENCY_COMPONENT_TYPE_LAST) 16 ui::LATENCY_COMPONENT_TYPE_LAST)
17 17
18 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent) 18 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent)
19 IPC_STRUCT_TRAITS_MEMBER(sequence_number) 19 IPC_STRUCT_TRAITS_MEMBER(sequence_number)
20 IPC_STRUCT_TRAITS_MEMBER(event_time) 20 IPC_STRUCT_TRAITS_MEMBER(event_time)
21 IPC_STRUCT_TRAITS_MEMBER(event_count) 21 IPC_STRUCT_TRAITS_MEMBER(event_count)
22 IPC_STRUCT_TRAITS_END() 22 IPC_STRUCT_TRAITS_END()
23 23
24 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::InputCoordinate)
25 IPC_STRUCT_TRAITS_MEMBER(x)
26 IPC_STRUCT_TRAITS_MEMBER(y)
27 IPC_STRUCT_TRAITS_END()
28
24 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo) 29 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo)
25 IPC_STRUCT_TRAITS_MEMBER(latency_components) 30 IPC_STRUCT_TRAITS_MEMBER(latency_components)
26 IPC_STRUCT_TRAITS_MEMBER(trace_id) 31 IPC_STRUCT_TRAITS_MEMBER(trace_id)
27 IPC_STRUCT_TRAITS_MEMBER(terminated) 32 IPC_STRUCT_TRAITS_MEMBER(terminated)
33 IPC_STRUCT_TRAITS_MEMBER(input_coordinates_size)
34 IPC_STRUCT_TRAITS_MEMBER(input_coordinates[0])
35 IPC_STRUCT_TRAITS_MEMBER(input_coordinates[1])
28 IPC_STRUCT_TRAITS_END() 36 IPC_STRUCT_TRAITS_END()
29 37
30 #endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ 38 #endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | ui/events/latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698