StructTraits to map mus::mojom::Event to unique_ptr<ui::Event>.

This CL defines StructTraits<mus::mojom::Event, unique_ptr<ui::Event>>. With
this mojo automatically uses unique_ptr<ui::Event> instead of mus::mojom::Event
when generating C++ header files for mojom interfaces, and events are
automatically serializied/deserialized and validated when sending/receiving over
mojo IPC.

BUG=578206

Review-Url: https://codereview.chromium.org/1939133002
Cr-Commit-Position: refs/heads/master@{#398107}


CrOS-Libchrome-Original-Commit: 73be633b0f9b71668ab204c22bd14742bd6c7ead
1 file changed
tree: 51e1d3e6f194f5714e7ddae64482aea7b05d6f57
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/