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

Unified Diff: content/test/accessibility_browser_test_utils.cc

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
« no previous file with comments | « content/test/accessibility_browser_test_utils.h ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e8ba40f4b11a036f11c0527587049dfb952ec248..dc7a7f853f8f70709cd9607dd28d52e1f985e9c6 100644
--- a/content/test/accessibility_browser_test_utils.cc
+++ b/content/test/accessibility_browser_test_utils.cc
@@ -23,7 +23,8 @@ AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(Shell* shell)
: shell_(shell),
event_to_wait_for_(ui::AX_EVENT_NONE),
loop_runner_(new MessageLoopRunner()),
- weak_factory_(this) {
+ weak_factory_(this),
+ event_target_id_(0) {
WebContents* web_contents = shell_->web_contents();
view_host_ = static_cast<RenderViewHostImpl*>(
web_contents->GetRenderViewHost());
@@ -39,7 +40,8 @@ AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(
: shell_(shell),
event_to_wait_for_(event_type),
loop_runner_(new MessageLoopRunner()),
- weak_factory_(this) {
+ weak_factory_(this),
+ event_target_id_(0) {
WebContents* web_contents = shell_->web_contents();
view_host_ = static_cast<RenderViewHostImpl*>(
web_contents->GetRenderViewHost());
@@ -61,9 +63,10 @@ const ui::AXTree& AccessibilityNotificationWaiter::GetAXTree() const {
}
void AccessibilityNotificationWaiter::OnAccessibilityEvent(
- ui::AXEvent event_type) {
+ 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;
loop_runner_->Quit();
}
}
« no previous file with comments | « content/test/accessibility_browser_test_utils.h ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698