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

Issue 1992443002: Add Mojo IPC based input-device service. (Closed)

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

Description

Add Mojo IPC based input-device service. Add Mojo interfaces to pass information about input-devices between processes. InputDeviceServer listens for updates about input-devices from DeviceDataManager and holds a list of out of process observers. It forwards updates via Mojo IPC to observers. InputDeviceClient registers as a Mojo observer with InputDeviceServer and holds a list of in process observers. It receives updates about input-devices from InputDeviceServer, caches the information and notifies in process observers. InputDeviceClient will replace the stub DeviceDataManager instance that is created in ash and chrome. Code is unused at this point, will be activated in a followup CL. BUG=601981 Committed: https://crrev.com/edbac87b7a0fbe93a323840e2f143686e4065b10 Cr-Commit-Position: refs/heads/master@{#399986}

Patch Set 1 #

Patch Set 2 : Clean up/move files. #

Total comments: 2

Patch Set 3 : Updated. #

Total comments: 1

Patch Set 4 : Rebase/move. #

Total comments: 4

Patch Set 5 : Rebase/update. #

Total comments: 23

Patch Set 6 : Fixes for comments. #

Total comments: 18

Patch Set 7 : Split CL and fixes. #

Patch Set 8 : Rebase/comments. #

Patch Set 9 : Implementation only. #

Total comments: 14

Patch Set 10 : Fix nits. #

Patch Set 11 : Change namespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -25 lines) Patch
A + components/mus/input_devices/BUILD.gn View 1 2 3 4 5 1 chunk +10 lines, -11 lines 0 comments Download
A components/mus/input_devices/input_device_server.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
A components/mus/input_devices/input_device_server.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +106 lines, -0 lines 0 comments Download
A + components/mus/public/cpp/input_devices/BUILD.gn View 1 2 3 4 5 1 chunk +10 lines, -11 lines 0 comments Download
A components/mus/public/cpp/input_devices/input_device_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +84 lines, -0 lines 0 comments Download
A components/mus/public/cpp/input_devices/input_device_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +112 lines, -0 lines 0 comments Download
A + components/mus/public/interfaces/input_devices/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
A components/mus/public/interfaces/input_devices/input_device_server.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +43 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (12 generated)
kylechar
4 years, 7 months ago (2016-05-18 18:49:10 UTC) #3
sadrul
+ben@ for his thoughts on the right place for this. I was thinking perhaps this ...
4 years, 7 months ago (2016-05-25 20:40:08 UTC) #5
Ben Goodger (Google)
On 2016/05/25 20:40:08, sadrul wrote: > +ben@ for his thoughts on the right place for ...
4 years, 7 months ago (2016-05-25 20:47:47 UTC) #6
kylechar
On 2016/05/25 20:47:47, Ben Goodger (Google) wrote: > On 2016/05/25 20:40:08, sadrul wrote: > > ...
4 years, 7 months ago (2016-05-25 21:03:18 UTC) #7
Ben Goodger (Google)
On 2016/05/25 21:03:18, kylechar wrote: > The InputDeviceService mojo interface is provided by mus currently. ...
4 years, 7 months ago (2016-05-25 22:01:38 UTC) #8
sadrul
On 2016/05/25 22:01:38, Ben Goodger (Google) wrote: > On 2016/05/25 21:03:18, kylechar wrote: > > ...
4 years, 6 months ago (2016-05-27 14:25:19 UTC) #9
Ben Goodger (Google)
On 2016/05/27 14:25:19, sadrul wrote: > On 2016/05/25 22:01:38, Ben Goodger (Google) wrote: > > ...
4 years, 6 months ago (2016-05-27 15:13:05 UTC) #10
sadrul
On 2016/05/27 15:13:05, Ben Goodger (Google) wrote: > On 2016/05/27 14:25:19, sadrul wrote: > > ...
4 years, 6 months ago (2016-05-27 15:17:05 UTC) #11
Fady Samuel
On 2016/05/27 15:17:05, sadrul wrote: > On 2016/05/27 15:13:05, Ben Goodger (Google) wrote: > > ...
4 years, 6 months ago (2016-05-27 15:50:22 UTC) #12
Ben Goodger (Google)
On 2016/05/27 15:50:22, Fady Samuel wrote: > Do we want directory structure within mus to ...
4 years, 6 months ago (2016-05-27 16:48:43 UTC) #13
kylechar
Okay, //components/mus/input_devices/ it is. sadrul@, the client part goes in components/mus/input_devices/public/cpp/ as I understand. What ...
4 years, 6 months ago (2016-05-27 19:52:22 UTC) #14
Ben Goodger (Google)
On 2016/05/27 19:52:22, kylechar wrote: > Okay, //components/mus/input_devices/ it is. sadrul@, the client part goes ...
4 years, 6 months ago (2016-05-27 19:54:05 UTC) #15
kylechar
On 2016/05/27 19:54:05, Ben Goodger (Google) wrote: > On 2016/05/27 19:52:22, kylechar wrote: > > ...
4 years, 6 months ago (2016-05-27 20:00:30 UTC) #16
Ben Goodger (Google)
On 2016/05/27 20:00:30, kylechar wrote: > On 2016/05/27 19:54:05, Ben Goodger (Google) wrote: > > ...
4 years, 6 months ago (2016-05-27 20:19:30 UTC) #17
kylechar
I've updated the CL. It's got a bit of debug and other junk in it ...
4 years, 6 months ago (2016-06-01 19:28:54 UTC) #19
Ben Goodger (Google)
https://codereview.chromium.org/1992443002/diff/40001/components/mus/input_devices/public/interfaces/input_devices.mojom File components/mus/input_devices/public/interfaces/input_devices.mojom (right): https://codereview.chromium.org/1992443002/diff/40001/components/mus/input_devices/public/interfaces/input_devices.mojom#newcode5 components/mus/input_devices/public/interfaces/input_devices.mojom:5: module input_device.mojom; this dir should be in: components/mus/public/interfaces/input_devices
4 years, 6 months ago (2016-06-02 18:06:44 UTC) #20
kylechar
On 2016/06/02 18:06:44, Ben Goodger (Google) wrote: > https://codereview.chromium.org/1992443002/diff/40001/components/mus/input_devices/public/interfaces/input_devices.mojom > File components/mus/input_devices/public/interfaces/input_devices.mojom (right): > > ...
4 years, 6 months ago (2016-06-02 18:47:27 UTC) #21
Ben Goodger (Google)
https://codereview.chromium.org/1992443002/diff/60001/components/mus/public/cpp/input_devices/lib/input_device_client.cc File components/mus/public/cpp/input_devices/lib/input_device_client.cc (right): https://codereview.chromium.org/1992443002/diff/60001/components/mus/public/cpp/input_devices/lib/input_device_client.cc#newcode1 components/mus/public/cpp/input_devices/lib/input_device_client.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 6 months ago (2016-06-02 19:35:19 UTC) #22
kylechar
https://codereview.chromium.org/1992443002/diff/60001/components/mus/public/cpp/input_devices/lib/input_device_client.cc File components/mus/public/cpp/input_devices/lib/input_device_client.cc (right): https://codereview.chromium.org/1992443002/diff/60001/components/mus/public/cpp/input_devices/lib/input_device_client.cc#newcode1 components/mus/public/cpp/input_devices/lib/input_device_client.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 6 months ago (2016-06-03 14:35:58 UTC) #23
Ben Goodger (Google)
On 2016/06/03 14:35:58, kylechar wrote: https://codereview.chromium.org/1992443002/diff/60001/components/mus/public/cpp/input_devices/lib/input_device_client.cc#newcode39 > components/mus/public/cpp/input_devices/lib/input_device_client.cc:39: void > InputDeviceClient::Connect(shell::Connector* connector) { > On ...
4 years, 6 months ago (2016-06-03 15:04:33 UTC) #24
kylechar
On 2016/06/03 15:04:33, Ben Goodger (Google) wrote: > On 2016/06/03 14:35:58, kylechar wrote: > https://codereview.chromium.org/1992443002/diff/60001/components/mus/public/cpp/input_devices/lib/input_device_client.cc#newcode39 ...
4 years, 6 months ago (2016-06-03 17:56:29 UTC) #25
sadrul
https://codereview.chromium.org/1992443002/diff/80001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/1992443002/diff/80001/ash/shell.cc#newcode1112 ash/shell.cc:1112: touch_transformer_controller_.reset(new TouchTransformerController()); This could be a separate CL https://codereview.chromium.org/1992443002/diff/80001/components/mus/input_devices/input_device.typemap ...
4 years, 6 months ago (2016-06-07 03:39:26 UTC) #26
kylechar
Have fixed most of the issues. See my replies for the things that haven't been ...
4 years, 6 months ago (2016-06-07 16:36:42 UTC) #27
sadrul
https://codereview.chromium.org/1992443002/diff/80001/components/mus/input_devices/input_device_struct_traits.h File components/mus/input_devices/input_device_struct_traits.h (right): https://codereview.chromium.org/1992443002/diff/80001/components/mus/input_devices/input_device_struct_traits.h#newcode60 components/mus/input_devices/input_device_struct_traits.h:60: default: On 2016/06/07 16:36:41, kylechar wrote: > On 2016/06/07 ...
4 years, 6 months ago (2016-06-08 16:31:10 UTC) #28
sadrul
(btw: you could split up the struct-traits into its own CL)
4 years, 6 months ago (2016-06-08 16:32:05 UTC) #29
kylechar
I've moved the Mojo structs and StructTraits to a new CL and made the requested ...
4 years, 6 months ago (2016-06-08 18:13:16 UTC) #30
kylechar
I just noticed I need to update some more comments based on the latest changes, ...
4 years, 6 months ago (2016-06-08 18:15:24 UTC) #31
kylechar
PTAL. I've rebased and simplified the CL. There is a followup CL that actually enables ...
4 years, 6 months ago (2016-06-10 17:06:40 UTC) #34
sadrul
nits. lgtm https://codereview.chromium.org/1992443002/diff/160001/components/mus/input_devices/input_device_server.cc File components/mus/input_devices/input_device_server.cc (right): https://codereview.chromium.org/1992443002/diff/160001/components/mus/input_devices/input_device_server.cc#newcode37 components/mus/input_devices/input_device_server.cc:37: void InputDeviceServer::Create(shell::Connection* connection, This should be at ...
4 years, 6 months ago (2016-06-10 18:01:49 UTC) #36
kylechar
Fixed nits. Can you take another look for OWNERS approval ben@? https://codereview.chromium.org/1992443002/diff/160001/components/mus/input_devices/input_device_server.cc File components/mus/input_devices/input_device_server.cc (right): ...
4 years, 6 months ago (2016-06-10 19:29:31 UTC) #38
Ben Goodger (Google)
lgtm
4 years, 6 months ago (2016-06-15 17:16:25 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992443002/220001
4 years, 6 months ago (2016-06-15 18:15:45 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 6 months ago (2016-06-15 19:20:17 UTC) #44
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 19:20:25 UTC) #45
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 19:21:27 UTC) #47
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/edbac87b7a0fbe93a323840e2f143686e4065b10
Cr-Commit-Position: refs/heads/master@{#399986}

Powered by Google App Engine
This is Rietveld 408576698