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

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)

Created:
3 years, 7 months ago by Patti Lor
Modified:
3 years, 7 months ago
Reviewers:
tapted, dmazzoni, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, shuchen+watch_chromium.org, hidehiko+watch_chromium.org, dougt+watch_chromium.org, lhchavez+watch_chromium.org, dmazzoni+watch_chromium.org, miu+watch_chromium.org, jdonnelly+watch_chromium.org, hcarmona+bubble_chromium.org, aboxhall+watch_chromium.org, jam, raymes+watch_chromium.org, nona+watch_chromium.org, je_julie, darin-cc_chromium.org, kalyank, mlamouri+watch-content_chromium.org, lgarron+watch_chromium.org, victorhsieh+watch_chromium.org, yuzo+watch_chromium.org, fuzzing_chromium.org, oshima+watch_chromium.org, dbeam+watch-downloads_chromium.org, rouslan+bubble_chromium.org, elijahtaylor+arcwatch_chromium.org, David Trainor- moved to gerrit, groby+bubble_chromium.org, tfarina, nektar+watch_chromium.org, dtseng+watch_chromium.org, mac-reviews_chromium.org, James Su, davemoore+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

A11y: Add/refactor methods for manipulating bitfields on AXNodeData. In preparation for allowing a11y elements to indicate they support a user-executable action (e.g. checking a checkbox), this change does two things: - Rename AXNodeData::AddStateFlag() / AXNodeData::HasStateFlag() to AXNodeData::AddState() for a consistent naming scheme. - Add a new method AXNodeData::ClearBitfields(), which will clear the bits set on AXNodeData::state. New bitfields added onto AXNodeData can also be cleared here. - Deletes AXNodeData::IsFlagSet() and replaces this with HasState() above. BUG=717846 Review-Url: https://codereview.chromium.org/2860883003 Cr-Commit-Position: refs/heads/master@{#470245} Committed: https://chromium.googlesource.com/chromium/src/+/34b559296ecf1005c41ea8278327ef5880553de0

Patch Set 1 #

Patch Set 2 : Fix SerializeSimpleAXTree test. #

Patch Set 3 : Revert comment. #

Total comments: 16

Patch Set 4 : Review comments. #

Total comments: 2

Patch Set 5 : Delete AXNodeData::Init() and clear bitfields in AXNodeData() instead. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -333 lines) Patch
M ash/system/audio/volume_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/system/ime_menu/ime_menu_tray_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/page_info/non_accessible_image_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/pdf/renderer/pdf_accessibility_tree.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_auralinux.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.mm View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 2 3 4 13 chunks +0 lines, -34 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win_unittest.cc View 1 2 3 4 34 chunks +100 lines, -91 lines 0 comments Download
M content/browser/accessibility/one_shot_accessibility_tree_search_unittest.cc View 1 2 3 4 3 chunks +1 line, -6 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/accessibility/ax_node_data.h View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M ui/accessibility/ax_node_data.cc View 1 2 3 4 3 chunks +19 lines, -55 lines 0 comments Download
M ui/accessibility/ax_node_position_unittest.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M ui/accessibility/ax_tree.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ui/accessibility/ax_tree_fuzzer.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 2 3 4 9 chunks +4 lines, -17 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_auralinux.cc View 1 2 3 1 chunk +9 lines, -10 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_mac.mm View 11 chunks +17 lines, -24 lines 0 comments Download
M ui/accessibility/tree_generator.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/accessibility/ax_view_obj_wrapper.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 2 comments Download
M ui/views/accessibility/ax_window_obj_wrapper.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/accessibility/native_view_accessibility_base.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/views/controls/button/button.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/controls/button/image_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/label.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/label_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/submenu_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/progress_bar.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/progress_bar_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/tabbed_pane/tabbed_pane.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc View 1 2 3 4 1 chunk +2 lines, -8 lines 0 comments Download
M ui/views/controls/table/table_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ui/views/controls/tree/tree_view.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 42 (33 generated)
Patti Lor
Hey Trent, PTAL? The biggest change is probably ax_node_data.cc. If you want more context in ...
3 years, 7 months ago (2017-05-05 05:00:43 UTC) #12
tapted
lgtm some suggestions, but you'll need an a11y owner https://codereview.chromium.org/2860883003/diff/40001/content/browser/accessibility/browser_accessibility_manager_mac.mm File content/browser/accessibility/browser_accessibility_manager_mac.mm (right): https://codereview.chromium.org/2860883003/diff/40001/content/browser/accessibility/browser_accessibility_manager_mac.mm#newcode139 content/browser/accessibility/browser_accessibility_manager_mac.mm:139: ...
3 years, 7 months ago (2017-05-05 05:53:37 UTC) #13
Patti Lor
Thanks Trent! Dominic could you take a look? I decided to split up the changes ...
3 years, 7 months ago (2017-05-08 00:28:08 UTC) #27
dmazzoni
lgtm Thanks for doing this! https://codereview.chromium.org/2860883003/diff/100001/ui/accessibility/ax_node_data.h File ui/accessibility/ax_node_data.h (right): https://codereview.chromium.org/2860883003/diff/100001/ui/accessibility/ax_node_data.h#newcode110 ui/accessibility/ax_node_data.h:110: void Init(); Perhaps we ...
3 years, 7 months ago (2017-05-08 04:28:27 UTC) #28
Patti Lor
Thanks Dominic - I made the change to clear the |state| bitfield in AXNodeData's constructor ...
3 years, 7 months ago (2017-05-08 07:44:47 UTC) #32
sky
LGTM - assuming state is already cleared. https://codereview.chromium.org/2860883003/diff/120001/ui/views/accessibility/ax_view_obj_wrapper.cc File ui/views/accessibility/ax_view_obj_wrapper.cc (left): https://codereview.chromium.org/2860883003/diff/120001/ui/views/accessibility/ax_view_obj_wrapper.cc#oldcode49 ui/views/accessibility/ax_view_obj_wrapper.cc:49: out_node_data->state = ...
3 years, 7 months ago (2017-05-08 15:56:27 UTC) #35
Patti Lor
Thanks all! https://codereview.chromium.org/2860883003/diff/120001/ui/views/accessibility/ax_view_obj_wrapper.cc File ui/views/accessibility/ax_view_obj_wrapper.cc (left): https://codereview.chromium.org/2860883003/diff/120001/ui/views/accessibility/ax_view_obj_wrapper.cc#oldcode49 ui/views/accessibility/ax_view_obj_wrapper.cc:49: out_node_data->state = 0; On 2017/05/08 15:56:27, sky ...
3 years, 7 months ago (2017-05-09 06:03:40 UTC) #36
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/2860883003/120001
3 years, 7 months ago (2017-05-09 06:04:13 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 06:09:53 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/34b559296ecf1005c41ea8278327...

Powered by Google App Engine
This is Rietveld 408576698