OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LATENCY_INFO_H_ | 5 #ifndef UI_EVENTS_LATENCY_INFO_H_ |
6 #define UI_EVENTS_LATENCY_INFO_H_ | 6 #define UI_EVENTS_LATENCY_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/containers/small_map.h" | 15 #include "base/containers/small_map.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | |
18 #include "ui/events/events_base_export.h" | 17 #include "ui/events/events_base_export.h" |
19 #include "ui/gfx/geometry/point_f.h" | 18 #include "ui/gfx/geometry/point_f.h" |
20 | 19 |
21 #if !defined(OS_IOS) | 20 #if !defined(OS_IOS) |
22 #include "ipc/ipc_param_traits.h" // nogncheck | 21 #include "ipc/ipc_param_traits.h" // nogncheck |
23 #include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck | 22 #include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck |
24 #endif | 23 #endif |
25 | 24 |
| 25 namespace base { |
| 26 namespace trace_event { |
| 27 class ConvertableToTraceFormat; |
| 28 } |
| 29 } |
| 30 |
26 namespace ui { | 31 namespace ui { |
27 | 32 |
28 #if !defined(OS_IOS) | 33 #if !defined(OS_IOS) |
29 namespace mojom { | 34 namespace mojom { |
30 class LatencyInfoDataView; | 35 class LatencyInfoDataView; |
31 } | 36 } |
32 #endif | 37 #endif |
33 | 38 |
34 // When adding new components, or new metrics based on LatencyInfo, | 39 // When adding new components, or new metrics based on LatencyInfo, |
35 // please update latency_info.dot. | 40 // please update latency_info.dot. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 #if !defined(OS_IOS) | 244 #if !defined(OS_IOS) |
240 friend struct IPC::ParamTraits<ui::LatencyInfo>; | 245 friend struct IPC::ParamTraits<ui::LatencyInfo>; |
241 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, | 246 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, |
242 ui::LatencyInfo>; | 247 ui::LatencyInfo>; |
243 #endif | 248 #endif |
244 }; | 249 }; |
245 | 250 |
246 } // namespace ui | 251 } // namespace ui |
247 | 252 |
248 #endif // UI_EVENTS_LATENCY_INFO_H_ | 253 #endif // UI_EVENTS_LATENCY_INFO_H_ |
OLD | NEW |