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

Unified Diff: content/test/accessibility_browser_test_utils.h

Issue 290633002: Implement Android accessible hit testing using an IPC to the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@better_logging_2
Patch Set: Remove unused function Created 6 years, 7 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 4cffa08435a0d2ce8b120c310daec511445e2b92..5111e3c6132877a084be07265c026d6c90845a7a 100644
--- a/content/test/accessibility_browser_test_utils.h
+++ b/content/test/accessibility_browser_test_utils.h
@@ -40,9 +40,13 @@ class AccessibilityNotificationWaiter {
// the tree of accessibility nodes received from the renderer process.
const ui::AXTree& GetAXTree() const;
+ // 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_; }
+
private:
// Callback from RenderViewHostImpl.
- void OnAccessibilityEvent(ui::AXEvent event);
+ void OnAccessibilityEvent(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".
@@ -53,6 +57,7 @@ class AccessibilityNotificationWaiter {
ui::AXEvent event_to_wait_for_;
scoped_refptr<MessageLoopRunner> loop_runner_;
base::WeakPtrFactory<AccessibilityNotificationWaiter> weak_factory_;
+ int event_target_id_;
DISALLOW_COPY_AND_ASSIGN(AccessibilityNotificationWaiter);
};
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility_complete.cc ('k') | content/test/accessibility_browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698