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

Issue 1408263006: chromeos: Add ArcInputBridge to components/arc (Closed)

Created:
5 years, 1 month ago by denniskempin
Modified:
5 years ago
CC:
blundell+watchlist_chromium.org, droger+watchlist_chromium.org, sdefresne+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@arcxx
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL adds the ArcInputBridge which hooks into aura::Windows that are running ARC applications to translate and transmit their ui::Events to the ARC instance. BUG=chromium:558499 TEST=Mouse, Touch and Keyboard events should be properly working on an ARC application window. Committed: https://crrev.com/3b12f96225546fdcae48735e15db9124ce2add95 Cr-Commit-Position: refs/heads/master@{#363941}

Patch Set 1 #

Patch Set 2 : Arc: Extend ArcBridgeService with input bridge #

Total comments: 15

Patch Set 3 : Fixes after first end-to-end test #

Patch Set 4 : More fixes after testing. cleanup. #

Patch Set 5 : added owners #

Total comments: 41

Patch Set 6 : Moved code to exosphere #

Patch Set 7 : Moved CreatEBridgeDevice to exo as well #

Patch Set 8 : added Get() method #

Patch Set 9 : fixed array initializeer #

Patch Set 10 : nit fixes #

Patch Set 11 : fixed scopedfd #

Total comments: 1

Patch Set 12 : Moved code back to components/arc #

Total comments: 26

Patch Set 13 : Moved IO to IO thread. Fixed style issues pointed out by jochen@ #

Total comments: 7

Patch Set 14 : integration with ArcServiceManager and ExoSurfaces #

Total comments: 81

Patch Set 15 : PImpl pattern. Non-blocking IO on UI thread. Nit fixes. #

Patch Set 16 : updated build files #

Patch Set 17 : fixed build.gn file #

Total comments: 22

Patch Set 18 : nit fixes. #

Total comments: 2

Patch Set 19 : limited deps #

Patch Set 20 : nit fix #

Total comments: 9

Patch Set 21 : use window tracker to remove event handler in dtor #

Patch Set 22 : nit fix #

Patch Set 23 : rebase #

Patch Set 24 : added missing dependency to gn file #

Patch Set 25 : removed dependency on ui/events/ozone to fix generic chromium os builder #

Patch Set 26 : rebase after mojo changes #

Patch Set 27 : removed CL dependency #

Total comments: 1

Patch Set 28 : fixed clang warnings #

Patch Set 29 : only attach observer if aura::Env exists #

Patch Set 30 : nit fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -1 line) Patch
M components/arc.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +5 lines, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +9 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -0 lines 0 comments Download
A + components/arc/input/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -1 line 0 comments Download
A components/arc/input/arc_input_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +43 lines, -0 lines 0 comments Download
A components/arc/input/arc_input_bridge_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +133 lines, -0 lines 0 comments Download
A components/arc/input/arc_input_bridge_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +365 lines, -0 lines 0 comments Download

Messages

Total messages: 94 (43 generated)
denniskempin (chromium)
Luis, Elijah, can you have a quick look for early feedback? I can't test this ...
5 years, 1 month ago (2015-11-02 18:12:36 UTC) #3
elijahtaylor1
https://codereview.chromium.org/1408263006/diff/20001/components/arc/arc_bridge_input_devices.cc File components/arc/arc_bridge_input_devices.cc (right): https://codereview.chromium.org/1408263006/diff/20001/components/arc/arc_bridge_input_devices.cc#newcode16 components/arc/arc_bridge_input_devices.cc:16: void BridgeInputDevice::SendEvent(base::TimeDelta time, time is highlighted in the code ...
5 years, 1 month ago (2015-11-02 22:30:29 UTC) #4
denniskempin
https://codereview.chromium.org/1408263006/diff/20001/components/arc/arc_bridge_input_devices.cc File components/arc/arc_bridge_input_devices.cc (right): https://codereview.chromium.org/1408263006/diff/20001/components/arc/arc_bridge_input_devices.cc#newcode16 components/arc/arc_bridge_input_devices.cc:16: void BridgeInputDevice::SendEvent(base::TimeDelta time, On 2015/11/02 22:30:29, elijahtaylor1 wrote: > ...
5 years, 1 month ago (2015-11-16 18:39:28 UTC) #5
denniskempin
PTAL! https://codereview.chromium.org/1408263006/diff/80001/components/arc/arc_bridge_service.cc File components/arc/arc_bridge_service.cc (right): https://codereview.chromium.org/1408263006/diff/80001/components/arc/arc_bridge_service.cc#newcode159 components/arc/arc_bridge_service.cc:159: if (bridge_devices_.empty()) { NOTE: this is temporary until ...
5 years, 1 month ago (2015-11-16 18:55:49 UTC) #7
elijahtaylor1
Focused mostly on the input code specifically, I did not look a lot at the ...
5 years, 1 month ago (2015-11-16 21:08:27 UTC) #9
jochen (gone - plz use gerrit)
please don't reference buganizer bugs from the CL description. Instead, file a crbug.com bug and ...
5 years, 1 month ago (2015-11-17 15:00:11 UTC) #10
jochen (gone - plz use gerrit)
please first iterate with a local reviewer on C++ coding style https://codereview.chromium.org/1408263006/diff/80001/components/arc.gypi File components/arc.gypi (right): ...
5 years, 1 month ago (2015-11-17 15:03:44 UTC) #11
Luis Héctor Chávez
https://codereview.chromium.org/1408263006/diff/80001/components/arc.gypi File components/arc.gypi (right): https://codereview.chromium.org/1408263006/diff/80001/components/arc.gypi#newcode22 components/arc.gypi:22: 'arc/arc_bridge_input_devices.cc', Can these be sorted alphabetically? https://codereview.chromium.org/1408263006/diff/80001/components/arc/arc_bridge_input_devices.cc File components/arc/arc_bridge_input_devices.cc ...
5 years, 1 month ago (2015-11-17 17:51:54 UTC) #12
denniskempin
PTAL again. Outstanding issue is threading. Currently I am doing io on the main thread ...
5 years, 1 month ago (2015-11-19 19:22:09 UTC) #13
denniskempin
https://codereview.chromium.org/1408263006/diff/200001/components/exo/arc/arc_input_bridge.cc File components/exo/arc/arc_input_bridge.cc (right): https://codereview.chromium.org/1408263006/diff/200001/components/exo/arc/arc_input_bridge.cc#newcode76 components/exo/arc/arc_input_bridge.cc:76: if (phase != InstanceBootPhase::SYSTEM_SERVICES_READY) { According to lloyd this ...
5 years, 1 month ago (2015-11-20 00:18:25 UTC) #14
jochen (gone - plz use gerrit)
can you please review the c++ style guide and update your code accordingly? also, format ...
5 years ago (2015-12-02 13:09:02 UTC) #15
denniskempin
On 2015/12/02 13:09:02, jochen wrote: > can you please review the c++ style guide and ...
5 years ago (2015-12-03 01:21:22 UTC) #16
denniskempin
https://codereview.chromium.org/1408263006/diff/220001/components/arc/DEPS File components/arc/DEPS (right): https://codereview.chromium.org/1408263006/diff/220001/components/arc/DEPS#newcode6 components/arc/DEPS:6: "+ui" On 2015/12/02 13:09:01, jochen wrote: > this needs ...
5 years ago (2015-12-03 01:26:42 UTC) #17
elijahtaylor1
https://codereview.chromium.org/1408263006/diff/240001/components/arc/input/arc_input_bridge.cc File components/arc/input/arc_input_bridge.cc (right): https://codereview.chromium.org/1408263006/diff/240001/components/arc/input/arc_input_bridge.cc#newcode96 components/arc/input/arc_input_bridge.cc:96: FROM_HERE, base::Bind(&ArcInputBridge::SendInputEventIO, just wondering if you know the average ...
5 years ago (2015-12-03 06:35:19 UTC) #18
denniskempin
https://codereview.chromium.org/1408263006/diff/240001/components/arc/input/arc_input_bridge.cc File components/arc/input/arc_input_bridge.cc (right): https://codereview.chromium.org/1408263006/diff/240001/components/arc/input/arc_input_bridge.cc#newcode96 components/arc/input/arc_input_bridge.cc:96: FROM_HERE, base::Bind(&ArcInputBridge::SendInputEventIO, On 2015/12/03 06:35:19, elijahtaylor1 wrote: > just ...
5 years ago (2015-12-03 15:43:40 UTC) #19
elijahtaylor1
lgtm but I think jochen should lgtm too since he's invested a lot in this ...
5 years ago (2015-12-04 01:38:29 UTC) #20
reveman
https://codereview.chromium.org/1408263006/diff/260001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1408263006/diff/260001/components/arc/arc_bridge_service.h#newcode26 components/arc/arc_bridge_service.h:26: class ArcBridgeService : public base::SupportsWeakPtr<ArcBridgeService> { why is this ...
5 years ago (2015-12-04 03:21:25 UTC) #22
jochen (gone - plz use gerrit)
lgtm once reveman is happy please make sure that errors are not swallowed into invisible ...
5 years ago (2015-12-04 14:18:12 UTC) #23
Luis Héctor Chávez
https://codereview.chromium.org/1408263006/diff/260001/components/arc/DEPS File components/arc/DEPS (right): https://codereview.chromium.org/1408263006/diff/260001/components/arc/DEPS#newcode6 components/arc/DEPS:6: "+ui" Wasn't the point of the ArcServiceManager to avoid ...
5 years ago (2015-12-04 17:59:59 UTC) #24
denniskempin
I fixed most nits. Most importantly I also moved IO back to the UI thread. ...
5 years ago (2015-12-04 22:35:31 UTC) #26
Luis Héctor Chávez
mostly nits, so lgtm and defer the final decision to reveman. https://codereview.chromium.org/1408263006/diff/320001/components/arc/input/arc_input_bridge_impl.cc File components/arc/input/arc_input_bridge_impl.cc (right): ...
5 years ago (2015-12-04 22:52:08 UTC) #27
Luis Héctor Chávez
Oh also, Edit issue and reformat the commit message, it should fit on 72 columns.
5 years ago (2015-12-04 23:02:43 UTC) #28
reveman
https://codereview.chromium.org/1408263006/diff/260001/components/arc/input/arc_input_bridge.cc File components/arc/input/arc_input_bridge.cc (right): https://codereview.chromium.org/1408263006/diff/260001/components/arc/input/arc_input_bridge.cc#newcode74 components/arc/input/arc_input_bridge.cc:74: weak_factory_.GetWeakPtr())); On 2015/12/04 at 22:35:29, denniskempin wrote: > On ...
5 years ago (2015-12-04 23:19:32 UTC) #30
denniskempin
https://codereview.chromium.org/1408263006/diff/320001/components/arc/input/arc_input_bridge.h File components/arc/input/arc_input_bridge.h (right): https://codereview.chromium.org/1408263006/diff/320001/components/arc/input/arc_input_bridge.h#newcode27 components/arc/input/arc_input_bridge.h:27: virtual ~ArcInputBridge(){}; On 2015/12/04 23:19:31, reveman wrote: > nit: ...
5 years ago (2015-12-05 00:05:19 UTC) #31
denniskempin
5 years ago (2015-12-05 00:14:02 UTC) #33
sky
https://codereview.chromium.org/1408263006/diff/340001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/1408263006/diff/340001/components/arc/BUILD.gn#newcode25 components/arc/BUILD.gn:25: "//ui", I'm surprised this compiles. //ui has no BUILD.gn, ...
5 years ago (2015-12-05 00:16:49 UTC) #34
sky
On 2015/12/05 00:16:49, sky wrote: > https://codereview.chromium.org/1408263006/diff/340001/components/arc/BUILD.gn > File components/arc/BUILD.gn (right): > > https://codereview.chromium.org/1408263006/diff/340001/components/arc/BUILD.gn#newcode25 > ...
5 years ago (2015-12-05 00:19:19 UTC) #35
sky
New DEPS LGTM
5 years ago (2015-12-05 00:23:28 UTC) #36
reveman
lgtm with a few nits and suggestions https://codereview.chromium.org/1408263006/diff/380001/components/arc/input/arc_input_bridge.h File components/arc/input/arc_input_bridge.h (right): https://codereview.chromium.org/1408263006/diff/380001/components/arc/input/arc_input_bridge.h#newcode27 components/arc/input/arc_input_bridge.h:27: virtual ~ArcInputBridge(){}; ...
5 years ago (2015-12-05 00:48:45 UTC) #37
denniskempin
https://codereview.chromium.org/1408263006/diff/340001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/1408263006/diff/340001/components/arc/BUILD.gn#newcode25 components/arc/BUILD.gn:25: "//ui", On 2015/12/05 00:16:49, sky wrote: > I'm surprised ...
5 years ago (2015-12-05 01:17:56 UTC) #38
reveman
lgtm
5 years ago (2015-12-05 01:21:38 UTC) #39
commit-bot: I haz the power
This CL has an open dependency (Issue 1496193002 Patch 80001). Please resolve the dependency and ...
5 years ago (2015-12-05 01:53:30 UTC) #43
commit-bot: I haz the power
This CL has an open dependency (Issue 1496193002 Patch 140001). Please resolve the dependency and ...
5 years ago (2015-12-05 02:00:04 UTC) #47
commit-bot: I haz the power
This CL has an open dependency (Issue 1496193002 Patch 140001). Please resolve the dependency and ...
5 years ago (2015-12-05 05:28:57 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/440001
5 years ago (2015-12-07 18:33:32 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/116425)
5 years ago (2015-12-07 18:46:40 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/460001
5 years ago (2015-12-07 18:56:09 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/66735)
5 years ago (2015-12-07 19:24:47 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/480001
5 years ago (2015-12-07 21:09:36 UTC) #63
commit-bot: I haz the power
This CL has an open dependency (Issue 1441683007 Patch 60001). Please resolve the dependency and ...
5 years ago (2015-12-08 02:57:55 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/510009 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/510009
5 years ago (2015-12-08 03:20:29 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/139512)
5 years ago (2015-12-08 03:37:15 UTC) #73
reveman
https://codereview.chromium.org/1408263006/diff/510009/components/arc/input/arc_input_bridge_impl.cc File components/arc/input/arc_input_bridge_impl.cc (right): https://codereview.chromium.org/1408263006/diff/510009/components/arc/input/arc_input_bridge_impl.cc#newcode113 components/arc/input/arc_input_bridge_impl.cc:113: if (new_window->name() == "ExoSurface") { Fyi, as an alternative ...
5 years ago (2015-12-08 17:02:09 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/530001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/530001
5 years ago (2015-12-08 18:46:23 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/89373)
5 years ago (2015-12-08 19:12:41 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/530001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/530001
5 years ago (2015-12-08 20:10:11 UTC) #81
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/98905)
5 years ago (2015-12-08 20:30:16 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/550001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/550001
5 years ago (2015-12-08 23:54:27 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263006/570001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263006/570001
5 years ago (2015-12-09 00:23:32 UTC) #90
commit-bot: I haz the power
Committed patchset #30 (id:570001)
5 years ago (2015-12-09 02:42:35 UTC) #92
commit-bot: I haz the power
5 years ago (2015-12-09 02:43:16 UTC) #94
Message was sent while issue was closed.
Patchset 30 (id:??) landed as
https://crrev.com/3b12f96225546fdcae48735e15db9124ce2add95
Cr-Commit-Position: refs/heads/master@{#363941}

Powered by Google App Engine
This is Rietveld 408576698