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

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

Issue 2808383004: Refactor and send voice interaction structure (Closed)
Patch Set: fix window build Created 3 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/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;

Powered by Google App Engine
This is Rietveld 408576698