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

Unified Diff: ui/events/mojo/event_struct_traits.h

Issue 2728883002: Adding LatencyInfo to mojom::Event. (Closed)
Patch Set: Adding handling for invalid event types. Created 3 years, 10 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
« no previous file with comments | « ui/events/mojo/event.typemap ('k') | ui/events/mojo/event_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/mojo/event_struct_traits.h
diff --git a/ui/events/mojo/event_struct_traits.h b/ui/events/mojo/event_struct_traits.h
index 459f240f85ba3e61e15ab5a4da630acf0245b826..f8d0e0ebafd4ec755d56f931d8bf9a492d5c7960 100644
--- a/ui/events/mojo/event_struct_traits.h
+++ b/ui/events/mojo/event_struct_traits.h
@@ -9,6 +9,7 @@
namespace ui {
class Event;
+class LatencyInfo;
}
namespace mojo {
@@ -20,6 +21,7 @@ struct StructTraits<ui::mojom::EventDataView, EventUniquePtr> {
static ui::mojom::EventType action(const EventUniquePtr& event);
static int32_t flags(const EventUniquePtr& event);
static int64_t time_stamp(const EventUniquePtr& event);
+ static const ui::LatencyInfo& latency(const EventUniquePtr& event);
static ui::mojom::KeyDataPtr key_data(const EventUniquePtr& event);
static ui::mojom::PointerDataPtr pointer_data(const EventUniquePtr& event);
static bool Read(ui::mojom::EventDataView r, EventUniquePtr* out);
« no previous file with comments | « ui/events/mojo/event.typemap ('k') | ui/events/mojo/event_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698