Chromium Code Reviews
DescriptionMacViews/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. #Dependent Patchsets: Messages
Total messages: 41 (29 generated)
|