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

Unified Diff: content/test/accessibility_browser_test_utils.cc

Issue 1836113002: Fix accessible touch exploration inside of iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test startup on Android 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/test/accessibility_browser_test_utils.cc
diff --git a/content/test/accessibility_browser_test_utils.cc b/content/test/accessibility_browser_test_utils.cc
index d44439bbe4e3da91409ef46954ed5c2f35f1ff18..4dc4c220253a1ace6dbe2c198050ac0582792906 100644
--- a/content/test/accessibility_browser_test_utils.cc
+++ b/content/test/accessibility_browser_test_utils.cc
@@ -24,6 +24,7 @@ AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(Shell* shell)
: event_to_wait_for_(ui::AX_EVENT_NONE),
loop_runner_(new MessageLoopRunner()),
event_target_id_(0),
+ event_render_frame_host_(nullptr),
weak_factory_(this) {
WebContents* web_contents = shell->web_contents();
frame_host_ = static_cast<RenderFrameHostImpl*>(
@@ -91,10 +92,13 @@ const ui::AXTree& AccessibilityNotificationWaiter::GetAXTree() const {
}
void AccessibilityNotificationWaiter::OnAccessibilityEvent(
- ui::AXEvent event_type, int event_target_id) {
- if (!IsAboutBlank() && (event_to_wait_for_ == ui::AX_EVENT_NONE ||
+ RenderFrameHostImpl* rfhi,
+ ui::AXEvent event_type,
+ int event_target_id) {
+ if (!IsAboutBlank() && (event_to_wait_for_ == ui::AX_EVENT_NONE ||
event_to_wait_for_ == event_type)) {
event_target_id_ = event_target_id;
+ event_render_frame_host_ = rfhi;
loop_runner_->Quit();
}
}
« no previous file with comments | « content/test/accessibility_browser_test_utils.h ('k') | third_party/WebKit/Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698