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

Issue 2490073002: MacViews/a11y: Allow accessibility clients to focus and unfocus focusable Views. (Closed)

Created:
4 years, 1 month ago by Patti Lor
Modified:
4 years, 1 month ago
Reviewers:
tapted, dmazzoni
CC:
chromium-reviews, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews/a11y: Allow accessibility clients to focus and unfocus focusable Views. Currently, the `isAccessibilityFocused` a11y attribute on Views is reported as unmodifiable, which differs from native UI elements on Mac. This change will support allowing accessibility clients to focus and unfocus Views controls which are reported as focusable using a new NativeViewAccessibility::SetFocused() method and a new ui::AX_ACTION_FLAGS_SET_UNFOCUSED. SetFocused() will not call View::HandleAccessibilityAction() because all Views are potentially focusable. BUG=610591 TEST=With #mac-views-webui-dialogs turned on in chrome:flags, open the XCode Accessibility Inspector and bring up the HTTP Authentication dialog. Hover over a control on it (e.g. the username Textfield) and press Cmd+F7 to lock onto it. In the Accessibility Inspector, click on `isAccessibilityFocused` and check it has a '(W)' next to it to indicate it's writable. A checkbox should appear at the bottom which reflects its current focused state. Check it and click Set Value to focus the control, then uncheck it and click Set Value to unfocus the control. Committed: https://crrev.com/f6a5dc8e9e2b639d9d4ce96f8bf1bce88aeef3f2 Cr-Commit-Position: refs/heads/master@{#432142}

Patch Set 1 #

Patch Set 2 : Use CreateParams and MakeUnique. #

Total comments: 20

Patch Set 3 : Review comments. #

Patch Set 4 : Show the widget before test start. #

Total comments: 4

Patch Set 5 : Review comments. #

Patch Set 6 : Fix test. #

Messages

Total messages: 41 (29 generated)
Patti Lor
Hi Trent, PTAL.
4 years, 1 month ago (2016-11-10 06:26:01 UTC) #10
tapted
https://codereview.chromium.org/2490073002/diff/20001/ui/accessibility/platform/ax_platform_node_delegate.h File ui/accessibility/platform/ax_platform_node_delegate.h (right): https://codereview.chromium.org/2490073002/diff/20001/ui/accessibility/platform/ax_platform_node_delegate.h#newcode99 ui/accessibility/platform/ax_platform_node_delegate.h:99: virtual bool SetFocused(const bool focused) = 0; nit: remove ...
4 years, 1 month ago (2016-11-11 00:36:26 UTC) #11
Patti Lor
Hi Trent, PTAL! https://codereview.chromium.org/2490073002/diff/20001/ui/accessibility/platform/ax_platform_node_delegate.h File ui/accessibility/platform/ax_platform_node_delegate.h (right): https://codereview.chromium.org/2490073002/diff/20001/ui/accessibility/platform/ax_platform_node_delegate.h#newcode99 ui/accessibility/platform/ax_platform_node_delegate.h:99: virtual bool SetFocused(const bool focused) = ...
4 years, 1 month ago (2016-11-14 03:51:22 UTC) #20
tapted
lgtm
4 years, 1 month ago (2016-11-14 06:21:22 UTC) #21
Patti Lor
Hi dmazzoni, PTAL. Thank you!
4 years, 1 month ago (2016-11-14 22:00:40 UTC) #23
dmazzoni
lgtm https://codereview.chromium.org/2490073002/diff/60001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/2490073002/diff/60001/ui/accessibility/ax_enums.idl#newcode283 ui/accessibility/ax_enums.idl:283: set_unfocused Unused? https://codereview.chromium.org/2490073002/diff/60001/ui/views/accessibility/native_view_accessibility.cc File ui/views/accessibility/native_view_accessibility.cc (right): https://codereview.chromium.org/2490073002/diff/60001/ui/views/accessibility/native_view_accessibility.cc#newcode74 ui/views/accessibility/native_view_accessibility.cc:74: ...
4 years, 1 month ago (2016-11-14 23:13:38 UTC) #24
Patti Lor
Thanks! https://codereview.chromium.org/2490073002/diff/60001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/2490073002/diff/60001/ui/accessibility/ax_enums.idl#newcode283 ui/accessibility/ax_enums.idl:283: set_unfocused On 2016/11/14 23:13:37, dmazzoni wrote: > Unused? ...
4 years, 1 month ago (2016-11-15 04:13:35 UTC) #31
dmazzoni
On 2016/11/15 04:13:35, Patti Lor wrote: > That sounds OK to me - either way ...
4 years, 1 month ago (2016-11-15 06:46:05 UTC) #34
Patti Lor
On 2016/11/15 06:46:05, dmazzoni wrote: > On 2016/11/15 04:13:35, Patti Lor wrote: > > That ...
4 years, 1 month ago (2016-11-15 07:43:05 UTC) #35
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/2490073002/100001
4 years, 1 month ago (2016-11-15 07:43:42 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-15 07:48:25 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 07:49:42 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f6a5dc8e9e2b639d9d4ce96f8bf1bce88aeef3f2
Cr-Commit-Position: refs/heads/master@{#432142}

Powered by Google App Engine
This is Rietveld 408576698