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

Unified Diff: content/test/accessibility_browser_test_utils.h

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.h
diff --git a/content/test/accessibility_browser_test_utils.h b/content/test/accessibility_browser_test_utils.h
index 34ffb15c7c755fdf7b3a9f4b49c16aa202193202..1735958eb9321c497528be296c4f56ba4f22961d 100644
--- a/content/test/accessibility_browser_test_utils.h
+++ b/content/test/accessibility_browser_test_utils.h
@@ -47,11 +47,19 @@ class AccessibilityNotificationWaiter {
// After WaitForNotification returns, use this to retrieve the id of the
// node that was the target of the event.
- int event_target_id() { return event_target_id_; }
+ int event_target_id() const { return event_target_id_; }
+
+ // After WaitForNotification returns, use this to retrieve the
+ // RenderFrameHostImpl that was the target of the event.
+ RenderFrameHostImpl* event_render_frame_host() const {
+ return event_render_frame_host_;
+ }
private:
// Callback from RenderViewHostImpl.
- void OnAccessibilityEvent(ui::AXEvent event, int event_target_id);
+ void OnAccessibilityEvent(content::RenderFrameHostImpl* rfhi,
+ ui::AXEvent event,
+ int event_target_id);
// Helper function to determine if the accessibility tree in
// GetAXTree() is about the page with the url "about:blank".
@@ -61,6 +69,7 @@ class AccessibilityNotificationWaiter {
ui::AXEvent event_to_wait_for_;
scoped_refptr<MessageLoopRunner> loop_runner_;
int event_target_id_;
+ RenderFrameHostImpl* event_render_frame_host_;
base::WeakPtrFactory<AccessibilityNotificationWaiter> weak_factory_;
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility.cc ('k') | content/test/accessibility_browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698