| 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);
|
| };
|
|
|