Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index f968ca22bcc00ec6ed8fbea79ba067f88e1963f7..b4ac5c96864391a7ee595cda8f85ebe9f9d587f8 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -27,6 +27,7 @@ |
#include "content/public/common/stop_find_action.h" |
#include "ipc/ipc_sender.h" |
#include "third_party/skia/include/core/SkColor.h" |
+#include "ui/accessibility/ax_tree_update.h" |
#include "ui/base/window_open_disposition.h" |
#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/native_widget_types.h" |
@@ -278,6 +279,12 @@ class WebContents : public PageNavigator, |
// menus. |
virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0; |
+ // Request a one-time snapshot of the accessibility tree without changing |
+ // the accessibility mode. |
+ using AXTreeSnapshotCallback = base::Callback<void(const ui::AXTreeUpdate&)>; |
+ virtual void RequestAXTreeSnapshot( |
+ const AXTreeSnapshotCallback& callback) = 0; |
+ |
// Causes the current page to be closed, including running its onunload event |
// handler. |
virtual void ClosePage() = 0; |