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

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

Issue 2767143007: Try |View::HandleAccessibleAction| before falling back to fixed actions. (Closed)
Patch Set: fix build Created 3 years, 9 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 | « chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc
diff --git a/chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc b/chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc
index 1d86b11284a7020fabbd9c93d57d310dd8d0abec..b390afda5948edc3874025a50ceba4e6182dacdc 100644
--- a/chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc
+++ b/chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc
@@ -61,6 +61,14 @@ void AXTreeSourceAura::ShowContextMenu(int32_t id) {
obj->ShowContextMenu();
}
+bool AXTreeSourceAura::HandleAccessibleAction(const ui::AXActionData& action) {
+ AXAuraObjWrapper* obj =
+ AXAuraObjCache::GetInstance()->Get(action.target_node_id);
+ if (obj)
+ return obj->HandleAccessibleAction(action);
+ return false;
+}
+
bool AXTreeSourceAura::GetTreeData(ui::AXTreeData* tree_data) const {
tree_data->tree_id = 0;
tree_data->loaded = true;
« no previous file with comments | « chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698