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

Issue 2230093002: MacViews a11y: Allow accessibility clients to set the AXValue on some controls. (Closed)

Created:
4 years, 4 months ago by Patti Lor
Modified:
4 years, 4 months ago
Reviewers:
tapted, dmazzoni
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

MacViews a11y: Allow accessibility clients to set the AXValue on some controls. Cocoa controls allow accessibility clients to set specific values on user input controls via accessibility clients. This doesn't yet work for MacViews controls. This CL adds support for writable ui::AX_VALUE attributes on MacViews. BUG=610591 TEST=Open the XCode 'Accessibility Inspector' and hover the mouse over the omnibox (for example). Press Cmd+F7 to lock onto the omnibox. Find the 'accessibilityValue' entry in the inspector (it should have a '(W)' next to it to indicate it's writable). Click it and at the bottom of the inspector has a textbox to edit the value. Edit and confirm, the text in the omnibox should be updated. Committed: https://crrev.com/0fa98f7891c47f1f942e3e584fc64227ebf65500 Cr-Commit-Position: refs/heads/master@{#412120}

Patch Set 1 #

Patch Set 2 : Don't show attributes are writable if there is not callback provided to change its value. #

Total comments: 18

Patch Set 3 : Get rid of array, move READ_ONLY checks to callback. #

Total comments: 12

Patch Set 4 : Don't say attributes are settable until implemented. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -4 lines) Patch
M ui/accessibility/platform/ax_platform_node_delegate.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_mac.mm View 1 2 3 1 chunk +37 lines, -1 line 0 comments Download
M ui/accessibility/platform/test_ax_node_wrapper.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/platform/test_ax_node_wrapper.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility.cc View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_auralinux.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac_accessibility_unittest.mm View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
Patti Lor
Hi Trent, PTAL! Thanks.
4 years, 4 months ago (2016-08-11 00:42:07 UTC) #6
tapted
https://codereview.chromium.org/2230093002/diff/20001/ui/accessibility/platform/ax_platform_node_mac.mm File ui/accessibility/platform/ax_platform_node_mac.mm (right): https://codereview.chromium.org/2230093002/diff/20001/ui/accessibility/platform/ax_platform_node_mac.mm#newcode356 ui/accessibility/platform/ax_platform_node_mac.mm:356: base::scoped_nsobject<NSMutableArray> axWritableAttributes( I don't think we need this array ...
4 years, 4 months ago (2016-08-11 04:23:26 UTC) #7
Patti Lor
Thanks Trent, PTAL (tests haven't run yet but I thought I should give you more ...
4 years, 4 months ago (2016-08-12 01:57:42 UTC) #10
tapted
lgtm % nits. Although I'm wary of returning `YES` for the ones not implemented yet ...
4 years, 4 months ago (2016-08-12 03:50:52 UTC) #11
Patti Lor
Hi dmazzoni@, PTAL for OWNERs review on everything except native_widget_mac_accessibility_unittest.cc! https://codereview.chromium.org/2230093002/diff/40001/ui/accessibility/platform/ax_platform_node_mac.mm File ui/accessibility/platform/ax_platform_node_mac.mm (right): https://codereview.chromium.org/2230093002/diff/40001/ui/accessibility/platform/ax_platform_node_mac.mm#newcode366 ...
4 years, 4 months ago (2016-08-12 05:16:54 UTC) #19
dmazzoni
lgtm
4 years, 4 months ago (2016-08-15 16:57:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2230093002/60001
4 years, 4 months ago (2016-08-16 00:11:58 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-16 01:08:33 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 01:10:09 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0fa98f7891c47f1f942e3e584fc64227ebf65500
Cr-Commit-Position: refs/heads/master@{#412120}

Powered by Google App Engine
This is Rietveld 408576698