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

Issue 2768093005: Send voice interaction structure from cros to Arc. (Closed)

Created:
3 years, 9 months ago by Muyuan
Modified:
3 years, 7 months ago
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Send voice interaction structure from cros to Arc. Bug=704684 Bug=b/35643583 Test=voice interaction context passed to ARC (Closed in favor of https://codereview.chromium.org/2808383004/)

Patch Set 1 #

Total comments: 1

Patch Set 2 : send voice interaction structure from cros to Arc. #

Patch Set 3 : address trybot errors #

Patch Set 4 : address trybot error #

Patch Set 5 : address trybot error #

Patch Set 6 : address trybot style issue #

Patch Set 7 : address trybot warning #

Patch Set 8 : address trybot error #

Total comments: 38

Patch Set 9 : address review commet #

Total comments: 6

Patch Set 10 : address review comments #

Total comments: 16

Patch Set 11 : address review comments for patchset 10 #

Total comments: 8

Patch Set 12 : address review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -2 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +117 lines, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_bridge_host_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_host_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.h View 3 chunks +7 lines, -0 lines 0 comments Download
M components/arc/common/arc_bridge.mojom View 2 chunks +7 lines, -2 lines 0 comments Download
A components/arc/common/voice_interaction_arc_home.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +65 lines, -0 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/browser/voice_interaction_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +55 lines, -0 lines 2 comments Download
A content/public/browser/voice_interaction_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +149 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (40 generated)
Muyuan
https://codereview.chromium.org/2768093005/diff/1/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/1/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode23 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:23: #include "content/browser/web_contents/web_contents_impl.h" These 2 lines cannot be included since ...
3 years, 9 months ago (2017-03-23 23:37:26 UTC) #1
Muyuan
On 2017/03/23 23:37:26, Muyuan wrote: > https://codereview.chromium.org/2768093005/diff/1/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc > File > chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc > (right): > > ...
3 years, 8 months ago (2017-03-31 00:53:43 UTC) #4
Muyuan
3 years, 8 months ago (2017-03-31 19:05:13 UTC) #6
Muyuan
3 years, 8 months ago (2017-03-31 20:35:22 UTC) #12
Muyuan
This issue is ready for review.
3 years, 8 months ago (2017-04-03 17:45:30 UTC) #35
xiyuan
https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode32 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:32: void CreateVoiceInteractionStructure( Why not use mojo typemapping ? https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode33 ...
3 years, 8 months ago (2017-04-03 19:01:08 UTC) #36
Muyuan
https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode32 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:32: void CreateVoiceInteractionStructure( On 2017/04/03 19:01:07, xiyuan wrote: > Why ...
3 years, 8 months ago (2017-04-03 20:25:36 UTC) #37
xiyuan
https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode32 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:32: void CreateVoiceInteractionStructure( On 2017/04/03 20:25:35, Muyuan wrote: > On ...
3 years, 8 months ago (2017-04-03 21:32:12 UTC) #40
Muyuan
https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode32 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:32: void CreateVoiceInteractionStructure( On 2017/04/03 21:32:11, xiyuan wrote: > On ...
3 years, 8 months ago (2017-04-03 23:00:33 UTC) #41
Luis Héctor Chávez
https://codereview.chromium.org/2768093005/diff/180001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/180001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode59 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:59: auto c = CreateVoiceInteractionStructure(child.get()); Do the same thing you ...
3 years, 8 months ago (2017-04-03 23:24:13 UTC) #42
Muyuan
https://codereview.chromium.org/2768093005/diff/180001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/180001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode59 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:59: auto c = CreateVoiceInteractionStructure(child.get()); On 2017/04/03 23:24:12, Luis Héctor ...
3 years, 8 months ago (2017-04-04 00:39:40 UTC) #43
xiyuan
lgtm
3 years, 8 months ago (2017-04-04 15:40:15 UTC) #44
Luis Héctor Chávez
lgtm with one extra nit I missed. https://codereview.chromium.org/2768093005/diff/200001/content/public/browser/voice_interaction_helper.cc File content/public/browser/voice_interaction_helper.cc (right): https://codereview.chromium.org/2768093005/diff/200001/content/public/browser/voice_interaction_helper.cc#newcode136 content/public/browser/voice_interaction_helper.cc:136: AXViewStructure::AXViewStructure() {} ...
3 years, 8 months ago (2017-04-04 15:49:32 UTC) #45
hidehiko
LGTM with more minor comments. https://codereview.chromium.org/2768093005/diff/200001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/200001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode37 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:37: const content::AXViewStructure* view_structure) { ...
3 years, 8 months ago (2017-04-04 17:42:58 UTC) #46
Muyuan
https://codereview.chromium.org/2768093005/diff/200001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc (right): https://codereview.chromium.org/2768093005/diff/200001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode37 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:37: const content::AXViewStructure* view_structure) { On 2017/04/04 17:42:58, hidehiko wrote: ...
3 years, 8 months ago (2017-04-04 18:35:34 UTC) #48
Avi (use Gerrit)
Muyuan, When sending for review, please indicate who should be reviewing what. You want me ...
3 years, 8 months ago (2017-04-04 20:04:47 UTC) #53
Avi (use Gerrit)
On 2017/04/04 20:04:47, Avi wrote: > Muyuan, > > When sending for review, please indicate ...
3 years, 8 months ago (2017-04-04 20:07:14 UTC) #54
Avi (use Gerrit)
https://codereview.chromium.org/2768093005/diff/220001/content/public/browser/voice_interaction_helper.h File content/public/browser/voice_interaction_helper.h (right): https://codereview.chromium.org/2768093005/diff/220001/content/public/browser/voice_interaction_helper.h#newcode49 content/public/browser/voice_interaction_helper.h:49: void GetAXViewStructure( I don't understand this file. It's named ...
3 years, 8 months ago (2017-04-04 20:11:01 UTC) #55
Muyuan
https://codereview.chromium.org/2768093005/diff/220001/content/public/browser/voice_interaction_helper.h File content/public/browser/voice_interaction_helper.h (right): https://codereview.chromium.org/2768093005/diff/220001/content/public/browser/voice_interaction_helper.h#newcode49 content/public/browser/voice_interaction_helper.h:49: void GetAXViewStructure( On 2017/04/04 20:11:01, Avi (slow and ooo ...
3 years, 8 months ago (2017-04-04 20:43:49 UTC) #56
Avi (use Gerrit)
On 2017/04/04 20:43:49, Muyuan wrote: > https://codereview.chromium.org/2768093005/diff/220001/content/public/browser/voice_interaction_helper.h > File content/public/browser/voice_interaction_helper.h (right): > > https://codereview.chromium.org/2768093005/diff/220001/content/public/browser/voice_interaction_helper.h#newcode49 > ...
3 years, 8 months ago (2017-04-04 20:45:40 UTC) #57
Avi (use Gerrit)
If you can extend the existing accessibility code, you should do so. Adding a second, ...
3 years, 8 months ago (2017-04-04 20:49:44 UTC) #58
dmazzoni
3 years, 8 months ago (2017-04-05 00:20:50 UTC) #61
As Avi said, we don't duplicate a bunch of existing code
and then refactor it later. Let's get the design right the
first time.

I suggest that rather than trying to land this all in one
change, you come up with a design, get buy-in from the
various owners, then land it in a few smaller changes.

It's okay to hack on one large change in the meantime and
ask questions.

Here are my suggestions:

1. First, add a public interface for WebContentsImpl::RequestAXTreeSnapshot.
It's a pretty high-level interface and I don't see any reason not to make it
public.

2. Refactor AXTreeSnapshotCallback and WalkAXTreeDepthFirst from
web_contents_android and put them somewhere that could be used by both
web_contents_android and by chrome/browser/chromeos/arc - I'm thinking that
ui/accessibility/platform makes the most sense. This will require some extra
work because it means taking BrowserAccessibility out of the loop entirely.
We're only using BrowserAccessibility for a few small things but really
web_contents_android never should have depended on it.

Talk to Selim (sgurun) to coordinate on part #2, as he wrote the
web_contents_android stuff.

This is going to take several weeks.

Powered by Google App Engine
This is Rietveld 408576698