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

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

Issue 2493923002: Select-to-speak event handler (Closed)
Patch Set: Fix presubmit warning Created 4 years, 1 month 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 90bba8d529103ddbe22ccdb16688c326c9e66745..06bfc0f172ca4a6c131908e5f44ce4aa609f4ea8 100644
--- a/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
+++ b/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
@@ -68,8 +68,9 @@ void AutomationManagerAura::HandleEvent(BrowserContext* context,
if (!enabled_)
return;
- views::AXAuraObjWrapper* aura_obj =
- views::AXAuraObjCache::GetInstance()->GetOrCreate(view);
+ views::AXAuraObjWrapper* aura_obj = view ?
+ views::AXAuraObjCache::GetInstance()->GetOrCreate(view) :
+ current_tree_->GetRoot();
SendEvent(nullptr, aura_obj, event_type);
}
« no previous file with comments | « chrome/browser/ui/aura/accessibility/automation_manager_aura.h ('k') | chrome/common/extensions/api/automation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698