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

Unified Diff: chrome/browser/ui/aura/accessibility/automation_manager_aura.cc

Issue 1705853002: NOT FOR REVIEW. ax tree focus with debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash Created 4 years, 10 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: chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
diff --git a/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc b/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
index 21f264af0b35ec93f7574e8165332e88c695ec50..830ee5b287c0c678ace860dd7c5f802939c63c6e 100644
--- a/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
+++ b/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
@@ -146,6 +146,13 @@ void AutomationManagerAura::SendEvent(BrowserContext* context,
LOG(ERROR) << "Unable to serialize one accessibility event.";
return;
}
+
+ // Make sure the focused node is serialized.
+ views::AXAuraObjWrapper* focus =
+ views::AXAuraObjCache::GetInstance()->GetFocus();
+ if (focus)
+ current_tree_serializer_->SerializeChanges(focus, &params.update);
+
params.tree_id = 0;
params.id = aura_obj->GetID();
params.event_type = event_type;

Powered by Google App Engine
This is Rietveld 408576698