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}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 66322329..7bda23f 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1025,7 +1025,8 @@
SetAccessibilityMode(new_mode);
}
-void WebContentsImpl::RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) {
+void WebContentsImpl::RequestAXTreeSnapshot(
+ const AXTreeSnapshotCallback& callback) {
// Send a request to each of the frames in parallel. Each one will return
// an accessibility tree snapshot, and AXTreeSnapshotCombiner will combine
// them into a single tree and call |callback| with that result, then