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_LATENCY_LATENCY_INFO_H_ | 5 #ifndef UI_LATENCY_LATENCY_INFO_H_ |
6 #define UI_LATENCY_LATENCY_INFO_H_ | 6 #define UI_LATENCY_LATENCY_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // Stores the type of the first source event. | 256 // Stores the type of the first source event. |
257 SourceEventType source_event_type_; | 257 SourceEventType source_event_type_; |
258 | 258 |
259 #if !defined(OS_IOS) | 259 #if !defined(OS_IOS) |
260 friend struct IPC::ParamTraits<ui::LatencyInfo>; | 260 friend struct IPC::ParamTraits<ui::LatencyInfo>; |
261 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, | 261 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, |
262 ui::LatencyInfo>; | 262 ui::LatencyInfo>; |
263 #endif | 263 #endif |
264 }; | 264 }; |
265 | 265 |
| 266 // This is declared here for use in gtest-based unit tests, but is defined in |
| 267 // //ui/latency:test_support target. |
| 268 // Without this the default PrintTo template in gtest tries to pass LatencyInfo |
| 269 // by value, which leads to an alignment compile error on Windows. |
| 270 void PrintTo(const LatencyInfo& latency, ::std::ostream* os); |
| 271 |
266 } // namespace ui | 272 } // namespace ui |
267 | 273 |
268 #endif // UI_LATENCY_LATENCY_INFO_H_ | 274 #endif // UI_LATENCY_LATENCY_INFO_H_ |
OLD | NEW |