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

Issue 2054463002: Add Mojo structs and StructTraits for //ui/events/devices. (Closed)

Created:
4 years, 6 months ago by kylechar
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, sadrul, tdresser+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Mojo structs and StructTraits for //ui/events/devices. Add structs for ui::InputDevice and ui::TouchscreenDevice so they can be shared between processes. Add StructTraits for the structs for automatic type conversions. The Mojo structs used composition instead of inheritance, as inheritance is unsupported. BUG=601981 Committed: https://crrev.com/f1684a532b1eb8f8182d4f3a2298c045bf0489be Cr-Commit-Position: refs/heads/master@{#398942}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -7 lines) Patch
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 chunk +1 line, -0 lines 0 comments Download
A + ui/events/devices/mojo/BUILD.gn View 1 chunk +3 lines, -3 lines 0 comments Download
A + ui/events/devices/mojo/OWNERS View 1 chunk +2 lines, -2 lines 0 comments Download
A ui/events/devices/mojo/input_device.typemap View 1 1 chunk +13 lines, -0 lines 0 comments Download
A ui/events/devices/mojo/input_device_struct_traits.h View 1 chunk +113 lines, -0 lines 3 comments Download
A ui/events/devices/mojo/input_devices.mojom View 1 chunk +33 lines, -0 lines 0 comments Download
A ui/events/devices/mojo/touchscreen_device.typemap View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + ui/events/devices/mojo/typemaps.gni View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
kylechar
tsepez@ for ui/events/devices/mojo/* rocket@ for mojo/*
4 years, 6 months ago (2016-06-08 18:01:01 UTC) #2
Tom Sepez
lgtm
4 years, 6 months ago (2016-06-08 18:24:56 UTC) #3
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2054463002/diff/1/ui/events/devices/mojo/input_device.typemap File ui/events/devices/mojo/input_device.typemap (right): https://codereview.chromium.org/2054463002/diff/1/ui/events/devices/mojo/input_device.typemap#newcode10 ui/events/devices/mojo/input_device.typemap:10: deps = [ Please change this to public_deps ...
4 years, 6 months ago (2016-06-08 18:30:01 UTC) #4
kylechar
Thanks for the quick review.. +sadrul@ for the not mojom/struct_traits. https://codereview.chromium.org/2054463002/diff/1/ui/events/devices/mojo/input_device.typemap File ui/events/devices/mojo/input_device.typemap (right): https://codereview.chromium.org/2054463002/diff/1/ui/events/devices/mojo/input_device.typemap#newcode10 ...
4 years, 6 months ago (2016-06-09 13:14:27 UTC) #6
sadrul
https://codereview.chromium.org/2054463002/diff/20001/ui/events/devices/mojo/input_device_struct_traits.h File ui/events/devices/mojo/input_device_struct_traits.h (right): https://codereview.chromium.org/2054463002/diff/20001/ui/events/devices/mojo/input_device_struct_traits.h#newcode73 ui/events/devices/mojo/input_device_struct_traits.h:73: out->sys_path = base::FilePath::FromUTF8Unsafe(sys_path_string); Should we be using FromUTF8Unsafe() on ...
4 years, 6 months ago (2016-06-09 14:21:46 UTC) #7
kylechar
https://codereview.chromium.org/2054463002/diff/20001/ui/events/devices/mojo/input_device_struct_traits.h File ui/events/devices/mojo/input_device_struct_traits.h (right): https://codereview.chromium.org/2054463002/diff/20001/ui/events/devices/mojo/input_device_struct_traits.h#newcode73 ui/events/devices/mojo/input_device_struct_traits.h:73: out->sys_path = base::FilePath::FromUTF8Unsafe(sys_path_string); On 2016/06/09 14:21:45, sadrul wrote: > ...
4 years, 6 months ago (2016-06-09 14:42:15 UTC) #8
sadrul
https://codereview.chromium.org/2054463002/diff/20001/ui/events/devices/mojo/input_device_struct_traits.h File ui/events/devices/mojo/input_device_struct_traits.h (right): https://codereview.chromium.org/2054463002/diff/20001/ui/events/devices/mojo/input_device_struct_traits.h#newcode73 ui/events/devices/mojo/input_device_struct_traits.h:73: out->sys_path = base::FilePath::FromUTF8Unsafe(sys_path_string); On 2016/06/09 14:42:14, kylechar wrote: > ...
4 years, 6 months ago (2016-06-09 15:09:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054463002/20001
4 years, 6 months ago (2016-06-09 16:49:50 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-09 17:54:32 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 17:54:55 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 18:00:02 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f1684a532b1eb8f8182d4f3a2298c045bf0489be
Cr-Commit-Position: refs/heads/master@{#398942}

Powered by Google App Engine
This is Rietveld 408576698