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

Unified Diff: ash/system/tray/system_tray.cc

Issue 60203005: Only focus the default item in the system tray when spoken feedback is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 4782ec327548940a2036c7806595cfaf7be6446d..65d9ffe3a6d1efb937f2f4d86788a50935c939dd 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -99,7 +99,12 @@ class SystemBubbleWrapper {
views::BubbleBorder::PAINT_NONE);
}
is_persistent_ = is_persistent;
- bubble_->FocusDefault();
+
+ // If ChromeVox is enabled, focus the default item.
+ AccessibilityDelegate* delegate =
+ Shell::GetInstance()->accessibility_delegate();
+ if (delegate->IsSpokenFeedbackEnabled())
+ bubble_->FocusDefault();
}
// Convenience accessors:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698