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

Unified Diff: content/public/test/browser_test_utils.h

Issue 1815933002: Fix WebView accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build dependencies Created 4 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/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index 203c6f80ff29d708386991b025757958a4c97a66..a07ed26205bb054dbabac92d274ea4a7bf4134f9 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -26,6 +26,7 @@
#include "content/public/common/page_type.h"
#include "ipc/message_filter.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "url/gurl.h"
@@ -279,6 +280,15 @@ void RunTaskAndWaitForInterstitialDetach(content::WebContents* web_contents,
// message is handled properly.
bool WaitForRenderFrameReady(RenderFrameHost* rfh) WARN_UNUSED_RESULT;
+// Enable accessibility support for all of the frames in this WebContents
+void EnableAccessibilityForWebContents(WebContents* web_contents);
+
+// Wait until the focused accessible node changes in any WebContents.
+void WaitForAccessibilityFocusChange();
+
+// Retrieve information about the node that's focused in the accessibility tree.
+ui::AXNodeData GetFocusedAccessibilityNodeInfo(WebContents* web_contents);
+
// Watches title changes on a WebContents, blocking until an expected title is
// set.
class TitleWatcher : public WebContentsObserver {

Powered by Google App Engine
This is Rietveld 408576698