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

Issue 2010493005: a11y/Mac: Add screenreader support for SubtleNotificationView announcements.

Created:
4 years, 7 months ago by Patti Lor
Modified:
4 years, 3 months ago
CC:
aboxhall+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, je_julie, nektar+watch_chromium.org, tfarina, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

a11y/Mac: Add screenreader support for SubtleNotificationView announcements. Add accessibility alerts (ui::AX_EVENT_ALERT) for SubtleNotificationView on Mac, which is used for the full screen, mouse/pointer lock, and new shortcut to go back notification bubbles. Add a string for the Command key icon ⌘, which is needed for translating the accelerator key icons to readable text for the screenreader. In theory, this change should also work on Windows and CrOS (since ui::AX_EVENT_ALERT is already plumbed through for both of these platforms) but this isn't the case (the cause of which is under investigation). Additionally, declare NSAccessibilityPriorityKey in base/mac/sdk_forward_declarations.h and update in other locations. BUG=577011

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase and use title instead of value. #

Total comments: 28

Patch Set 4 : Address review comments. #

Total comments: 2

Patch Set 5 : Fix announce to work for new backspace notification, not just ExclusiveAccessBubbleViews. #

Patch Set 6 : Rebase. #

Total comments: 22

Patch Set 7 : Address review comments. #

Total comments: 4

Patch Set 8 : Address review comments. #

Total comments: 8

Patch Set 9 : Address review comments. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -7 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/new_back_shortcut_bubble.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/subtle_notification_view.h View 1 2 3 4 5 6 7 4 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/ui/views/subtle_notification_view.cc View 1 2 3 4 5 6 7 8 9 7 chunks +47 lines, -2 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 46 (22 generated)
Patti Lor
Hi Trent, Dominic, PTAL! It's still a WIP - it might be worth adding strings ...
4 years, 6 months ago (2016-06-21 07:27:12 UTC) #2
dmazzoni
lgtm https://codereview.chromium.org/2010493005/diff/40001/ui/accessibility/platform/ax_platform_node_mac.mm File ui/accessibility/platform/ax_platform_node_mac.mm (right): https://codereview.chromium.org/2010493005/diff/40001/ui/accessibility/platform/ax_platform_node_mac.mm#newcode310 ui/accessibility/platform/ax_platform_node_mac.mm:310: // TODO(patricialor): Remove this when the deployment target ...
4 years, 6 months ago (2016-06-21 20:09:36 UTC) #3
tapted
+mgiuca for the the ExclusiveAccessBubbleViews::Show() comment below. Also maybe you have ideas for testing on ...
4 years, 6 months ago (2016-06-22 00:23:38 UTC) #5
Matt Giuca
https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc File chrome/browser/ui/views/exclusive_access_bubble_views.cc (right): https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc#newcode89 chrome/browser/ui/views/exclusive_access_bubble_views.cc:89: view_->NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); On 2016/06/22 00:23:38, tapted wrote: > should ...
4 years, 6 months ago (2016-06-22 02:59:20 UTC) #6
Patti Lor
Thanks all, PTAL. Also, friendly ping to dmazzoni@, please see https://codereview.chromium.org/2010493005/#msg2! https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc File chrome/browser/ui/views/exclusive_access_bubble_views.cc (right): ...
4 years, 6 months ago (2016-06-23 01:00:39 UTC) #9
Matt Giuca
https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc File chrome/browser/ui/views/exclusive_access_bubble_views.cc (right): https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc#newcode131 chrome/browser/ui/views/exclusive_access_bubble_views.cc:131: view_->NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true); On 2016/06/23 01:00:38, Patti Lor wrote: > ...
4 years, 6 months ago (2016-06-24 04:21:12 UTC) #10
dmazzoni
https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc File chrome/browser/ui/views/exclusive_access_bubble_views.cc (right): https://codereview.chromium.org/2010493005/diff/40001/chrome/browser/ui/views/exclusive_access_bubble_views.cc#newcode131 chrome/browser/ui/views/exclusive_access_bubble_views.cc:131: view_->NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true); On 2016/06/24 04:21:12, Matt Giuca wrote: > ...
4 years, 6 months ago (2016-06-24 05:26:03 UTC) #11
Patti Lor
Hi all, PTAL - tapted@ suggested I test this change with the new shortcut to ...
4 years, 5 months ago (2016-06-27 05:10:39 UTC) #14
tapted
https://codereview.chromium.org/2010493005/diff/40001/ui/accessibility/platform/ax_platform_node_mac.mm File ui/accessibility/platform/ax_platform_node_mac.mm (right): https://codereview.chromium.org/2010493005/diff/40001/ui/accessibility/platform/ax_platform_node_mac.mm#newcode347 ui/accessibility/platform/ax_platform_node_mac.mm:347: NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh) On 2016/06/23 01:00:39, Patti Lor wrote: ...
4 years, 5 months ago (2016-07-11 03:46:47 UTC) #15
Patti Lor
Thanks Trent, PTAL! https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc File chrome/browser/ui/views/subtle_notification_view.cc (right): https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc#newcode41 chrome/browser/ui/views/subtle_notification_view.cc:41: const char kKeyNameDelimiter[] = "|"; On ...
4 years, 5 months ago (2016-07-12 00:04:36 UTC) #16
tapted
mostly nits. Make sure the subject of the CL matches the first line of the ...
4 years, 5 months ago (2016-07-12 00:51:40 UTC) #17
dmazzoni
https://codereview.chromium.org/2010493005/diff/180001/chrome/browser/ui/views/subtle_notification_view.cc File chrome/browser/ui/views/subtle_notification_view.cc (right): https://codereview.chromium.org/2010493005/diff/180001/chrome/browser/ui/views/subtle_notification_view.cc#newcode192 chrome/browser/ui/views/subtle_notification_view.cc:192: NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true); I think AX_EVENT_CHILDREN_CHANGED would be better since ...
4 years, 5 months ago (2016-07-13 23:41:35 UTC) #19
Matt Giuca
https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc File chrome/browser/ui/views/subtle_notification_view.cc (right): https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc#newcode41 chrome/browser/ui/views/subtle_notification_view.cc:41: const char kKeyNameDelimiter[] = "|"; On 2016/07/12 00:04:36, Patti ...
4 years, 5 months ago (2016-07-14 01:16:03 UTC) #20
tapted
https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc File chrome/browser/ui/views/subtle_notification_view.cc (right): https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc#newcode41 chrome/browser/ui/views/subtle_notification_view.cc:41: const char kKeyNameDelimiter[] = "|"; On 2016/07/14 01:16:02, Matt ...
4 years, 5 months ago (2016-07-14 01:48:40 UTC) #21
Patti Lor
Thanks all, PTAL. I have also updated the CL description as per tapted's comment. https://codereview.chromium.org/2010493005/diff/140001/chrome/browser/ui/views/subtle_notification_view.cc ...
4 years, 5 months ago (2016-07-19 01:31:51 UTC) #27
tapted
https://codereview.chromium.org/2010493005/diff/180001/chrome/browser/ui/views/subtle_notification_view.cc File chrome/browser/ui/views/subtle_notification_view.cc (right): https://codereview.chromium.org/2010493005/diff/180001/chrome/browser/ui/views/subtle_notification_view.cc#newcode192 chrome/browser/ui/views/subtle_notification_view.cc:192: NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true); On 2016/07/19 01:31:51, Patti Lor wrote: > ...
4 years, 5 months ago (2016-07-19 02:46:53 UTC) #28
dmazzoni
lgtm
4 years, 4 months ago (2016-07-26 22:27:34 UTC) #29
antoontje30
lgtm
4 years, 4 months ago (2016-08-05 10:01:34 UTC) #32
antoontje30
lgtm lgtm
4 years, 4 months ago (2016-08-05 10:01:34 UTC) #33
antoontje30
lgtm
4 years, 4 months ago (2016-08-21 05:14:12 UTC) #34
antoontje30
lgtm lgtm lgtm
4 years, 4 months ago (2016-08-21 05:14:14 UTC) #35
antoontje30
lgtm lgtm
4 years, 4 months ago (2016-08-21 05:14:17 UTC) #36
dmazzoni
lgtm
4 years, 4 months ago (2016-08-22 19:29:26 UTC) #37
Matt Giuca
4 years, 4 months ago (2016-08-22 20:44:51 UTC) #38
lgtm

oops, I didn't see these notifications earlier.

Powered by Google App Engine
This is Rietveld 408576698