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

Issue 2808383004: Refactor and send voice interaction structure (Closed)

Created:
3 years, 8 months ago by Muyuan
Modified:
3 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, hidehiko+watch_chromium.org, nasko+codewatch_chromium.org, yzshen+watch_chromium.org, dougt+watch_chromium.org, lhchavez+watch_chromium.org, dmazzoni+watch_chromium.org, agrieve+watch_chromium.org, yusukes+watch_chromium.org, aboxhall+watch_chromium.org, jam, abarth-chromium, je_julie, darin-cc_chromium.org, creis+watch_chromium.org, victorhsieh+watch_chromium.org, yuzo+watch_chromium.org, oshima+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, nektar+watch_chromium.org, Aaron Boodman, dtseng+watch_chromium.org, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

1. Refactor accessibility to allow code sharing from web_contents_android and ARC. 2. Implement sending voice interaction structure from cros to ARC. BUG=b/35643583 BUG=704684 TEST= browser_tests --gtest_filter=\ ArcVoiceInteractionArcHomeServiceTest.* TEST=manually verified ax element position in clank TEST=verified voice interaction structure sent to ARC Review-Url: https://codereview.chromium.org/2808383004 Cr-Commit-Position: refs/heads/master@{#467746} Committed: https://chromium.googlesource.com/chromium/src/+/c693ba146941bf2baba7f2544f3ccb6349dd211f

Patch Set 1 #

Patch Set 2 : fix WmShell position #

Total comments: 8

Patch Set 3 : address avi's review comment #

Total comments: 3

Patch Set 4 : address dominic's review comments #

Total comments: 15

Patch Set 5 : address review comments #

Patch Set 6 : add test case #

Total comments: 24

Patch Set 7 : address review comments #

Patch Set 8 : address review comment, fix win compilation error. #

Patch Set 9 : possibly fix linux_android_rel_ng test #

Patch Set 10 : address review comments. fix win compilation and android tests #

Patch Set 11 : fix linux_android_rel_ng #

Patch Set 12 : fix (hopefully) android tests #

Patch Set 13 : fix linux_android_rel_ng #

Patch Set 14 : fix windows builds #

Patch Set 15 : fix window build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+998 lines, -200 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 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 1 chunk +49 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 1 chunk +121 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +155 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 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 chunk +65 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_android.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +6 lines, -95 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -89 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M ui/accessibility/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_android_constants.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_android_constants.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A ui/accessibility/platform/ax_snapshot_node_android_platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +81 lines, -0 lines 0 comments Download
A ui/accessibility/platform/ax_snapshot_node_android_platform.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +455 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (32 generated)
Muyuan
nasko: Could you please review changes to content/*? This CL results from a discussion in ...
3 years, 8 months ago (2017-04-12 00:24:08 UTC) #2
dmazzoni
I'll have to think about this some more but something along these lines should work ...
3 years, 8 months ago (2017-04-12 20:46:56 UTC) #3
Muyuan
https://codereview.chromium.org/2808383004/diff/20001/ui/accessibility/platform/ax_android_snapshot.h File ui/accessibility/platform/ax_android_snapshot.h (right): https://codereview.chromium.org/2808383004/diff/20001/ui/accessibility/platform/ax_android_snapshot.h#newcode51 ui/accessibility/platform/ax_android_snapshot.h:51: AX_EXPORT std::string GetClassName(const AXNode* node); On 2017/04/12 20:46:56, dmazzoni ...
3 years, 8 months ago (2017-04-12 23:57:12 UTC) #4
Muyuan
avi: could you please take a look at contents/*? This is CL's approach is based ...
3 years, 8 months ago (2017-04-14 00:58:14 UTC) #6
sgurun-gerrit only
On 2017/04/14 00:58:14, Muyuan wrote: > avi: could you please take a look at contents/*? ...
3 years, 8 months ago (2017-04-14 14:35:46 UTC) #7
Avi (use Gerrit)
This exposes RequestAXTreeSnapshot to the public API, and that is an approach that I am ...
3 years, 8 months ago (2017-04-14 14:45:05 UTC) #8
Muyuan
https://codereview.chromium.org/2808383004/diff/20001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/2808383004/diff/20001/content/browser/web_contents/web_contents_impl.h#newcode240 content/browser/web_contents/web_contents_impl.h:240: void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) override; On 2017/04/14 14:45:05, Avi (concussion ...
3 years, 8 months ago (2017-04-18 18:24:51 UTC) #9
Muyuan
https://codereview.chromium.org/2808383004/diff/20001/ui/accessibility/platform/ax_android_snapshot.h File ui/accessibility/platform/ax_android_snapshot.h (right): https://codereview.chromium.org/2808383004/diff/20001/ui/accessibility/platform/ax_android_snapshot.h#newcode51 ui/accessibility/platform/ax_android_snapshot.h:51: AX_EXPORT std::string GetClassName(const AXNode* node); On 2017/04/12 23:57:11, Muyuan ...
3 years, 8 months ago (2017-04-20 00:06:22 UTC) #10
dmazzoni
OK, getting much better. Please address the feedback below, then it'd be good to have ...
3 years, 8 months ago (2017-04-20 21:04:08 UTC) #11
sgurun-gerrit only
https://codereview.chromium.org/2808383004/diff/60001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (left): https://codereview.chromium.org/2808383004/diff/60001/content/browser/web_contents/web_contents_android.cc#oldcode184 content/browser/web_contents/web_contents_android.cc:184: manager->set_prune_tree_for_screen_reader(false); where is this code now?
3 years, 8 months ago (2017-04-20 23:25:01 UTC) #12
Muyuan
dmazzoni@: I'm still working on the tests.. Since the CL involves calculating relative position of ...
3 years, 8 months ago (2017-04-21 18:45:12 UTC) #13
dmazzoni
https://codereview.chromium.org/2808383004/diff/40001/ui/accessibility/platform/ax_android_snapshot.h File ui/accessibility/platform/ax_android_snapshot.h (right): https://codereview.chromium.org/2808383004/diff/40001/ui/accessibility/platform/ax_android_snapshot.h#newcode24 ui/accessibility/platform/ax_android_snapshot.h:24: struct AXSnapshotNodeAndroid { On 2017/04/21 18:45:11, Muyuan wrote: > ...
3 years, 8 months ago (2017-04-21 21:28:55 UTC) #14
dmazzoni
https://codereview.chromium.org/2808383004/diff/60001/ui/accessibility/platform/ax_android_snapshot.h File ui/accessibility/platform/ax_android_snapshot.h (right): https://codereview.chromium.org/2808383004/diff/60001/ui/accessibility/platform/ax_android_snapshot.h#newcode24 ui/accessibility/platform/ax_android_snapshot.h:24: AXSnapshotNodeAndroid(); On 2017/04/21 18:45:12, Muyuan wrote: > On 2017/04/20 ...
3 years, 8 months ago (2017-04-21 21:31:47 UTC) #15
sgurun-gerrit only
https://codereview.chromium.org/2808383004/diff/60001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (left): https://codereview.chromium.org/2808383004/diff/60001/content/browser/web_contents/web_contents_android.cc#oldcode184 content/browser/web_contents/web_contents_android.cc:184: manager->set_prune_tree_for_screen_reader(false); On 2017/04/21 18:45:11, Muyuan wrote: > On 2017/04/20 ...
3 years, 8 months ago (2017-04-21 21:48:22 UTC) #16
Muyuan
dmazzoni@: A test case is added. https://codereview.chromium.org/2808383004/diff/60001/ui/accessibility/platform/ax_android_snapshot.h File ui/accessibility/platform/ax_android_snapshot.h (right): https://codereview.chromium.org/2808383004/diff/60001/ui/accessibility/platform/ax_android_snapshot.h#newcode24 ui/accessibility/platform/ax_android_snapshot.h:24: AXSnapshotNodeAndroid(); On 2017/04/21 ...
3 years, 8 months ago (2017-04-25 04:31:06 UTC) #17
dmazzoni
lgtm Thanks for your hard work on this! https://codereview.chromium.org/2808383004/diff/100001/ui/accessibility/platform/ax_snapshot_node_android_platform.h File ui/accessibility/platform/ax_snapshot_node_android_platform.h (right): https://codereview.chromium.org/2808383004/diff/100001/ui/accessibility/platform/ax_snapshot_node_android_platform.h#newcode26 ui/accessibility/platform/ax_snapshot_node_android_platform.h:26: // ...
3 years, 8 months ago (2017-04-25 17:06:58 UTC) #18
dmazzoni
One last thing, please update the subject and change description now that it's not WIP ...
3 years, 8 months ago (2017-04-25 17:07:29 UTC) #19
Avi (use Gerrit)
Content stamp lgtm
3 years, 8 months ago (2017-04-25 17:13:31 UTC) #20
Muyuan
lhchavez: Could you please take a look at chrome/browser/* and components/arc/*? This is mostly a ...
3 years, 8 months ago (2017-04-25 17:46:47 UTC) #23
Muyuan
https://codereview.chromium.org/2808383004/diff/100001/ui/accessibility/platform/ax_snapshot_node_android_platform.h File ui/accessibility/platform/ax_snapshot_node_android_platform.h (right): https://codereview.chromium.org/2808383004/diff/100001/ui/accessibility/platform/ax_snapshot_node_android_platform.h#newcode26 ui/accessibility/platform/ax_snapshot_node_android_platform.h:26: // an AxTreeUpdate. On 2017/04/25 17:06:58, dmazzoni wrote: > ...
3 years, 8 months ago (2017-04-25 17:51:03 UTC) #24
Luis Héctor Chávez
https://codereview.chromium.org/2808383004/diff/100001/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/2808383004/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode69 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:69: base::Bind(&ArcVoiceInteractionArcHomeService:: iwyu: #include "base/bind.h" https://codereview.chromium.org/2808383004/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.h File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.h (right): https://codereview.chromium.org/2808383004/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.h#newcode16 ...
3 years, 8 months ago (2017-04-25 18:22:37 UTC) #27
Muyuan
https://codereview.chromium.org/2808383004/diff/100001/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/2808383004/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc#newcode69 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_arc_home_service.cc:69: base::Bind(&ArcVoiceInteractionArcHomeService:: On 2017/04/25 18:22:36, Luis Héctor Chávez wrote: > ...
3 years, 8 months ago (2017-04-25 19:38:14 UTC) #30
Luis Héctor Chávez
lgtm with a final nit. https://codereview.chromium.org/2808383004/diff/100001/ui/accessibility/platform/ax_snapshot_node_android_platform.cc File ui/accessibility/platform/ax_snapshot_node_android_platform.cc (right): https://codereview.chromium.org/2808383004/diff/100001/ui/accessibility/platform/ax_snapshot_node_android_platform.cc#newcode196 ui/accessibility/platform/ax_snapshot_node_android_platform.cc:196: std::unique_ptr<AXSnapshotNodeAndroid>(new AXSnapshotNodeAndroid); On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 20:05:32 UTC) #33
Muyuan
https://codereview.chromium.org/2808383004/diff/100001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/2808383004/diff/100001/content/public/browser/web_contents.h#newcode285 content/public/browser/web_contents.h:285: virtual void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) = 0; On 2017/04/25 19:38:13, ...
3 years, 8 months ago (2017-04-25 20:49:42 UTC) #36
dmazzoni
still lgtm, thanks!
3 years, 8 months ago (2017-04-27 05:12:22 UTC) #53
Oliver Chang
RS LGTM
3 years, 7 months ago (2017-04-27 18:26:46 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2808383004/280001
3 years, 7 months ago (2017-04-27 18:33:29 UTC) #57
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 19:12:56 UTC) #60
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/c693ba146941bf2baba7f2544f3c...

Powered by Google App Engine
This is Rietveld 408576698