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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views.cc

Issue 2010493005: a11y/Mac: Add screenreader support for SubtleNotificationView announcements. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and use title instead of value. Created 4 years, 6 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/views/exclusive_access_bubble_views.cc
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views.cc b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
index b67c9378e3143485cdbf322024e9a3a57890a220..f356a4412c188ee2ec6a0d953e3df19f6da31994 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views.cc
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
@@ -85,6 +85,8 @@ ExclusiveAccessBubbleViews::ExclusiveAccessBubbleViews(
->fullscreen_controller()));
UpdateMouseWatcher();
+
+ view_->NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true);
tapted 2016/06/22 00:23:38 should this be in ExclusiveAccessBubbleViews::Show
Matt Giuca 2016/06/22 02:59:20 Yeah I think it should be in Show(), not the const
Patti Lor 2016/06/23 01:00:38 Done.
}
ExclusiveAccessBubbleViews::~ExclusiveAccessBubbleViews() {
@@ -125,6 +127,8 @@ void ExclusiveAccessBubbleViews::UpdateContent(
StopWatchingMouse();
UpdateMouseWatcher();
+
+ view_->NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true);
tapted 2016/06/22 00:23:38 If we start by fixing Mac and address other platfo
Matt Giuca 2016/06/22 02:59:20 Are you saying this code is only relevant on non-M
Patti Lor 2016/06/23 01:00:38 Agreed - as far as I can tell, it doesn't work on
Matt Giuca 2016/06/24 04:21:12 I'm not sure (it's really hard to test on other pl
dmazzoni 2016/06/24 05:26:03 This is a reasonable event to fire on any platform
Patti Lor 2016/06/27 05:10:38 Ended up plumbing ui::AX_EVENT_TEXT_CHANGED throug
}
void ExclusiveAccessBubbleViews::RepositionIfVisible() {
« no previous file with comments | « no previous file | chrome/browser/ui/views/subtle_notification_view.h » ('j') | chrome/browser/ui/views/subtle_notification_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698