commit | 83ba5c841ef0bbb4fbf229f6cb342fcc78bea224 | [log] [tgz] |
---|---|---|
author | dmazzoni <[email protected]> | Tue Apr 14 07:11:51 2015 |
committer | Commit bot <[email protected]> | Tue Apr 14 07:12:26 2015 |
tree | 1e0f2c9245e2d9b276d715f4d7e2a8e55ec456d7 | |
parent | 0c3811aadc26a1f12abc9434542b3a5a98400fe5 [diff] [blame] |
Add a WebContentsImpl API to snapshot the accessibility tree. Depends on: https://codereview.chromium.org/1053773002/ BUG=472704 Review URL: https://codereview.chromium.org/1051923003 Cr-Commit-Position: refs/heads/master@{#325011}
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h index df36f49e..058d96d 100644 --- a/content/browser/web_contents/web_contents_impl.h +++ b/content/browser/web_contents/web_contents_impl.h
@@ -207,6 +207,12 @@ // 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();