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

Issue 2799413002: Views a11y: Add AXNodeData.actions bitfield to indicate supported actions by UI. (Closed)

Created:
3 years, 8 months ago by Patti Lor
Modified:
3 years, 7 months ago
Reviewers:
dmazzoni, Mike West
CC:
aboxhall+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dougt+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, mac-reviews_chromium.org, mlamouri+watch-content_chromium.org, nektar+watch_chromium.org, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, tfarina, yusukes+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Views a11y: Add AXNodeData.actions bitfield to indicate supported actions by UI. AXActions are used to perform actions on an a11y element, such as changing the value of a textfield, focus/blur an element, etc. However, currently there is no way to indicate that an element actually supports that particular action, e.g. a numerical combobox that allows text input may support three actions - 'left click' (to focus the text field), 'increment', and 'decrement', but might not do anything on 'right click' (which would typically show a context menu). Add a new |actions| bitfield on AXNodeData to allow a11y elements to indicate which actions they actually support, and remove the |can_set_value| attribute since we now have a general solution for all AXActions. BUG=717846 Review-Url: https://codereview.chromium.org/2799413002 Cr-Commit-Position: refs/heads/master@{#473515} Committed: https://chromium.googlesource.com/chromium/src/+/979beede7c397098ba05931fd1f29792a95472eb

Patch Set 1 #

Patch Set 2 : Fix some compile errors. #

Patch Set 3 : Refactor to just add a new |supported_actions| bitfield. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix more compilation errors. #

Patch Set 6 : Android, Windows, Linux changes to their respective a11y action interface implementations. #

Patch Set 7 : Android, Windows, Linux changes to their respective a11y action interface implementations. #

Patch Set 8 : Fix a few tests & IPC calls. #

Patch Set 9 : Rebase #

Patch Set 10 : Removed unused variable. #

Patch Set 11 : Fix windows? #

Patch Set 12 : Fix remaining tests and compilation errors for Windows. #

Patch Set 13 : Fix Android a11y tests. #

Patch Set 14 : Fix Windows compile. #

Patch Set 15 : Fix more windows compile errors? #

Patch Set 16 : Fix Windows. #

Patch Set 17 : Update some missed references to .state in browser_accessibility_win_unittest.cc. #

Patch Set 18 : Fix Linux. #

Patch Set 19 : Fix Windows tests. #

Patch Set 20 : Don't return 'default action' strings. #

Patch Set 21 : Fix Linux compile again. #

Patch Set 22 : Fix default action impls, sweep for places where ClearBitfields() is uncalled. #

Patch Set 23 : Rebase. #

Patch Set 24 : Sweep for places where ClearBitfield() hasn't been called. #

Patch Set 25 : Stop clearing bitfields repeatedly for static variables. #

Patch Set 26 : Rebase & switch to use AX_ACTION instead of AX_SUPPORTED_ACTION/AX_DEFAULT_ACTION_VERB. #

Patch Set 27 : Fix tests broken from rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -31 lines) Patch
M chrome/common/extensions/chrome_extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/accessibility/accessibility_tree_formatter_blink.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +18 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -4 lines 2 comments Download
M content/browser/accessibility/browser_accessibility_com_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/accessibility_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/action-verbs-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/html/actions.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +20 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/actions-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +9 lines, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -3 lines 0 comments Download
M ui/accessibility/ax_node_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +8 lines, -3 lines 0 comments Download
M ui/accessibility/ax_node_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 8 chunks +71 lines, -10 lines 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 134 (123 generated)
Patti Lor
Hi Dominic, PTAL? I added a new bitfield |AXNodeData::supported_actions| and removed ui::AX_ATTR_ACTION, so that we ...
3 years, 7 months ago (2017-04-28 08:19:03 UTC) #91
dmazzoni
No big concerns about the code changes, just some high-level questions first: * Your canonical ...
3 years, 7 months ago (2017-04-28 22:36:08 UTC) #94
dmazzoni
Follow-up question. It's totally fine if you don't *solve* this issue in this changelist, I ...
3 years, 7 months ago (2017-05-01 16:11:17 UTC) #107
Patti Lor
On 2017/05/01 16:11:17, dmazzoni wrote: > Follow-up question. It's totally fine if you don't > ...
3 years, 7 months ago (2017-05-02 08:14:32 UTC) #113
dmazzoni
I agree, there should be a way to indicate whether you can right-click on something, ...
3 years, 7 months ago (2017-05-02 15:37:38 UTC) #114
Patti Lor
Hi Dominic, PTAL? I've updated the CL description and bug too.
3 years, 7 months ago (2017-05-19 07:34:48 UTC) #125
dmazzoni
lgtm https://codereview.chromium.org/2799413002/diff/560001/content/browser/accessibility/browser_accessibility_cocoa.mm File content/browser/accessibility/browser_accessibility_cocoa.mm (right): https://codereview.chromium.org/2799413002/diff/560001/content/browser/accessibility/browser_accessibility_cocoa.mm#newcode2789 content/browser/accessibility/browser_accessibility_cocoa.mm:2789: return browserAccessibility_->HasAction(ui::AX_ACTION_SET_VALUE); Love it, this is a lot ...
3 years, 7 months ago (2017-05-19 19:24:25 UTC) #126
Patti Lor
Thanks Dominic. PTAL mkwst@ for IPC stuff in: chrome/common/extensions/chrome_extension_messages.h content/common/accessibility_messages.h Thanks in advance! https://codereview.chromium.org/2799413002/diff/560001/content/browser/accessibility/browser_accessibility_cocoa.mm File ...
3 years, 7 months ago (2017-05-22 00:20:59 UTC) #128
Mike West
LGTM
3 years, 7 months ago (2017-05-22 04:59:36 UTC) #129
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/2799413002/560001
3 years, 7 months ago (2017-05-22 05:01:55 UTC) #131
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 06:24:52 UTC) #134
Message was sent while issue was closed.
Committed patchset #27 (id:560001) as
https://chromium.googlesource.com/chromium/src/+/979beede7c397098ba05931fd1f2...

Powered by Google App Engine
This is Rietveld 408576698