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

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

Issue 1051923003: Add a WebContentsImpl API to snapshot the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 3c45bd55546ddbde5a4a203c9cf76de45c85b332..3d4656acb2665d4f83bcefbc5d843f9f9ce31aaa 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -204,6 +204,12 @@ class CONTENT_EXPORT WebContentsImpl
// have been removed.
void RemoveAccessibilityMode(AccessibilityMode mode);
+ // Request a one-time snapshot of the accessibility tree without changing
+ // the accessibility mode.
+ typedef base::Callback<void(const ui::AXTreeUpdate&)>
+ AXTreeSnapshotCallback;
+ void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
+
// Clear the navigation transition data when the user navigates back to Chrome
// from a native app.
void ClearNavigationTransitionData();

Powered by Google App Engine
This is Rietveld 408576698