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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1051923003: Add a WebContentsImpl API to snapshot the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scoped trace, clean up callbacks Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 55a291d0d36c4edea4bf7e4d2be4f3fbb4ca600d..5dcd704d4469005142a6ece5c48f3ea470e28b8f 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -722,6 +722,13 @@ void WebContentsImpl::RemoveAccessibilityMode(AccessibilityMode mode) {
SetAccessibilityMode(RemoveAccessibilityModeFrom(accessibility_mode_, mode));
}
+void WebContentsImpl::RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) {
+ // TODO(dmazzoni): http://crbug.com/475608 This only returns the
+ // accessibility tree from the main frame and everything in the
+ // same site instance.
+ GetMainFrame()->RequestAXTreeSnapshot(callback);
+}
+
void WebContentsImpl::ClearNavigationTransitionData() {
FrameTreeNode* node = frame_tree_.root();
node->render_manager()->ClearNavigationTransitionData();

Powered by Google App Engine
This is Rietveld 408576698