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

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: Fixed and finished test Created 5 years, 9 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 6626ab0c93e3221f62e0920b824deca043d82f7c..c94689ca8d1a1646eb77270aaeec0e5aa49d81d1 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -722,6 +722,12 @@ void WebContentsImpl::RemoveAccessibilityMode(AccessibilityMode mode) {
SetAccessibilityMode(RemoveAccessibilityModeFrom(accessibility_mode_, mode));
}
+void WebContentsImpl::RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) {
+ // TODO(dmazzoni): this only returns the accessibility tree from the main
+ // frame and everything in the same site instance.
Charlie Reis 2015/04/02 23:09:06 How will this work for OOPIFs?
dmazzoni 2015/04/03 22:49:42 Yes - to address this and your question above, her
Charlie Reis 2015/04/06 21:56:51 I'm open to the idea of using a different set of I
dmazzoni 2015/04/09 18:39:01 Note that this is a sync IPC from the renderer to
Charlie Reis 2015/04/10 20:18:07 Which IPC are you referring to by "this is a sync
+ GetMainFrame()->RequestAXTreeSnapshot(callback);
+}
+
void WebContentsImpl::ClearNavigationTransitionData() {
FrameTreeNode* node = frame_tree_.root();
node->render_manager()->ClearNavigationTransitionData();

Powered by Google App Engine
This is Rietveld 408576698