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

Unified Diff: chrome/browser/ui/aura/accessibility/automation_manager_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 | « no previous file | chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11f50f0fc4980439abd235909769fa85d0c78be3..ad9122d0f8c7d6b6fe76dc0c83db5212087809a7 100644
--- a/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
+++ b/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
@@ -85,6 +85,12 @@ void AutomationManagerAura::PerformAction(
const ui::AXActionData& data) {
CHECK(enabled_);
+ if (current_tree_->HandleAccessibleAction(data)) {
+ // This accessible action is handled by custom action implemented by the
+ // target view.
+ return;
+ }
+
switch (data.action) {
case ui::AX_ACTION_DO_DEFAULT:
current_tree_->DoDefault(data.target_node_id);
« no previous file with comments | « no previous file | chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698