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

Unified Diff: ui/events/latency_info.h

Issue 2040733002: Implement LatencyInfo StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ArrayTraits for InputCoordinates Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/latency_info.h
diff --git a/ui/events/latency_info.h b/ui/events/latency_info.h
index 43a7d7b7abadca2aa6ed182988aaef6cf3b7c00c..914610f972bbf571b14cfd4db8bbb26ac2ac0504 100644
--- a/ui/events/latency_info.h
+++ b/ui/events/latency_info.h
@@ -19,10 +19,17 @@
#if !defined(OS_IOS)
#include "ipc/ipc_param_traits.h" // nogncheck
+#include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck
#endif
namespace ui {
+#if !defined(OS_IOS)
+namespace mojom {
+class LatencyInfo;
+}
+#endif
+
// When adding new components, or new metrics based on LatencyInfo,
// please update latency_info.dot.
enum LatencyComponentType {
@@ -240,6 +247,7 @@ class EVENTS_BASE_EXPORT LatencyInfo {
#if !defined(OS_IOS)
friend struct IPC::ParamTraits<ui::LatencyInfo>;
+ friend struct mojo::StructTraits<ui::mojom::LatencyInfo, ui::LatencyInfo>;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698