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

Issue 67283004: First step to move common accessibility code out of content. (Closed)

Created:
7 years, 1 month ago by dmazzoni
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, Peter Lundblad
Visibility:
Public.

Description

First step to move common accessibility code out of content. This changelist defines new classes and types for accessibility in ui/accessibility. Subsequent changes will refactor code inside content/ to inherit from AXTree and AXNode, then we can start exposing the accessibility tree outside of content/. In addition, we can now use these same types in Views accessibility and share more code. BUG=316726 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236733

Patch Set 1 #

Patch Set 2 : Moved out of public api #

Total comments: 61

Patch Set 3 : Address some feedback #

Patch Set 4 : In progress #

Patch Set 5 : Decouple AXTreeSource #

Patch Set 6 : Refactored AXTreeImpl::UpdateNode #

Total comments: 8

Patch Set 7 : Move to ui/accessibility #

Patch Set 8 : Get rid of content change #

Total comments: 18

Patch Set 9 : Add ax_export and ax_serializable_tree, address other feedback #

Total comments: 25

Patch Set 10 : Address feedback from Alice #

Patch Set 11 : Add TODOs #

Total comments: 2

Patch Set 12 : Move to ui/accessibility/accessibility.gyp #

Patch Set 13 : Git rid of AX_EXPORT from templatized function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1124 lines, -48 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A + ui/accessibility/DEPS View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A ui/accessibility/accessibility.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +54 lines, -0 lines 0 comments Download
A ui/accessibility/ax_enums.h View 1 2 3 4 5 6 7 8 9 1 chunk +124 lines, -0 lines 0 comments Download
A ui/accessibility/ax_export.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
A ui/accessibility/ax_node.h View 1 2 3 4 5 6 7 8 1 chunk +59 lines, -0 lines 0 comments Download
A ui/accessibility/ax_node.cc View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 0 comments Download
A + ui/accessibility/ax_node_data.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -45 lines 0 comments Download
A ui/accessibility/ax_node_data.cc View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A ui/accessibility/ax_serializable_tree.h View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
A ui/accessibility/ax_serializable_tree.cc View 1 2 3 4 5 6 7 8 1 chunk +70 lines, -0 lines 0 comments Download
A ui/accessibility/ax_tree.h View 1 2 3 4 5 6 7 8 1 chunk +75 lines, -0 lines 0 comments Download
A ui/accessibility/ax_tree.cc View 1 2 3 4 5 6 7 8 1 chunk +164 lines, -0 lines 0 comments Download
A ui/accessibility/ax_tree_serializer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +252 lines, -0 lines 0 comments Download
A + ui/accessibility/ax_tree_serializer.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
A ui/accessibility/ax_tree_source.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A ui/accessibility/ax_tree_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A ui/accessibility/ax_tree_update.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A + ui/accessibility/ax_tree_update.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
dmazzoni
Ready for an initial look. This code violates the content API guidelines because it actually ...
7 years, 1 month ago (2013-11-08 21:08:54 UTC) #1
dmazzoni
OK, I tried to refactor this so that the public API doesn't have any implementation. ...
7 years, 1 month ago (2013-11-09 00:09:17 UTC) #2
aboxhall
I'm disappointed git didn't do a better job detecting copies. https://codereview.chromium.org/67283004/diff/40001/content/common/ax_node_impl.cc File content/common/ax_node_impl.cc (right): https://codereview.chromium.org/67283004/diff/40001/content/common/ax_node_impl.cc#newcode18 ...
7 years, 1 month ago (2013-11-11 18:20:34 UTC) #3
David Tseng
https://codereview.chromium.org/67283004/diff/40001/content/public/common/ax_node.h File content/public/common/ax_node.h (right): https://codereview.chromium.org/67283004/diff/40001/content/public/common/ax_node.h#newcode18 content/public/common/ax_node.h:18: // Accessors. The traversal API mirrors some of the ...
7 years, 1 month ago (2013-11-11 18:43:51 UTC) #4
David Tseng
https://codereview.chromium.org/67283004/diff/40001/content/common/ax_node_impl.h File content/common/ax_node_impl.h (right): https://codereview.chromium.org/67283004/diff/40001/content/common/ax_node_impl.h#newcode20 content/common/ax_node_impl.h:20: // AXNode. nit: AXNode implementation. https://codereview.chromium.org/67283004/diff/40001/content/common/ax_node_impl.h#newcode29 content/common/ax_node_impl.h:29: // Initialize ...
7 years, 1 month ago (2013-11-11 19:27:18 UTC) #5
dmazzoni
Most feedback addressed. Will do a bit more refactoring as requested, but please let me ...
7 years, 1 month ago (2013-11-12 00:03:03 UTC) #6
dmazzoni
OK, to reduce confusion, now AXTreeImpl no longer double-inherits from AXTreeSource. AXTreeSource is still useful ...
7 years, 1 month ago (2013-11-12 07:20:19 UTC) #7
dmazzoni
https://codereview.chromium.org/67283004/diff/40001/content/common/ax_tree_impl.cc File content/common/ax_tree_impl.cc (right): https://codereview.chromium.org/67283004/diff/40001/content/common/ax_tree_impl.cc#newcode122 content/common/ax_tree_impl.cc:122: // Update the children in three steps: On 2013/11/11 ...
7 years, 1 month ago (2013-11-12 07:48:23 UTC) #8
jam
Just had a chance to look at this, sorry for the delay. Looking at these ...
7 years, 1 month ago (2013-11-12 16:28:13 UTC) #9
dmazzoni
On Tue, Nov 12, 2013 at 8:28 AM, <jam@chromium.org> wrote: > Is it because of ...
7 years, 1 month ago (2013-11-12 18:54:20 UTC) #10
jam
On 2013/11/12 18:54:20, Dominic Mazzoni wrote: > On Tue, Nov 12, 2013 at 8:28 AM, ...
7 years, 1 month ago (2013-11-12 21:06:14 UTC) #11
dmazzoni
On Tue, Nov 12, 2013 at 1:06 PM, <jam@chromium.org> wrote: > Can you explain some ...
7 years, 1 month ago (2013-11-12 21:13:18 UTC) #12
jam
On 2013/11/12 21:13:18, Dominic Mazzoni wrote: > On Tue, Nov 12, 2013 at 1:06 PM, ...
7 years, 1 month ago (2013-11-12 21:42:03 UTC) #13
David Tseng
A quick suggestion. Could we split this cl into a few pieces? Let's try to ...
7 years, 1 month ago (2013-11-13 15:27:45 UTC) #14
David Tseng
https://codereview.chromium.org/67283004/diff/270001/content/common/ax_tree_source.h File content/common/ax_tree_source.h (right): https://codereview.chromium.org/67283004/diff/270001/content/common/ax_tree_source.h#newcode20 content/common/ax_tree_source.h:20: template<class AXSourceNode> AXNodeSource https://codereview.chromium.org/67283004/diff/270001/content/common/ax_tree_source.h#newcode23 content/common/ax_tree_source.h:23: AXTreeSource() {} These should ...
7 years, 1 month ago (2013-11-13 18:00:07 UTC) #15
David Tseng
lgtm https://codereview.chromium.org/67283004/diff/40001/content/common/ax_tree_impl.cc File content/common/ax_tree_impl.cc (right): https://codereview.chromium.org/67283004/diff/40001/content/common/ax_tree_impl.cc#newcode57 content/common/ax_tree_impl.cc:57: int32 AXTreeImpl::GetId(const AXNode* node) const { On 2013/11/12 ...
7 years, 1 month ago (2013-11-13 18:08:08 UTC) #16
David Tseng
lgtm
7 years, 1 month ago (2013-11-13 18:08:11 UTC) #17
dmazzoni
OK, I moved this from content/ to ui/accessibility. We're going to go the route of ...
7 years, 1 month ago (2013-11-13 19:35:58 UTC) #18
dmazzoni
7 years, 1 month ago (2013-11-13 19:43:08 UTC) #19
David Tseng
https://codereview.chromium.org/67283004/diff/490001/ui/accessibility/ax_node.h File ui/accessibility/ax_node.h (right): https://codereview.chromium.org/67283004/diff/490001/ui/accessibility/ax_node.h#newcode31 ui/accessibility/ax_node.h:31: virtual void Init(AXNode* parent, int32 id, int32 index_in_parent); Where ...
7 years, 1 month ago (2013-11-15 18:05:31 UTC) #20
dmazzoni
@ben I added ax_export.h, as requested - there are no dependencies on ui/base now. https://codereview.chromium.org/67283004/diff/490001/ui/accessibility/ax_node.h ...
7 years, 1 month ago (2013-11-18 08:09:25 UTC) #21
aboxhall
lgtm Are the parallel enum assertions meant to be included in this change too? https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_enums.h ...
7 years, 1 month ago (2013-11-18 21:57:10 UTC) #22
dmazzoni
On 2013/11/18 21:57:10, aboxhall wrote: > Are the parallel enum assertions meant to be included ...
7 years, 1 month ago (2013-11-19 17:13:54 UTC) #23
aboxhall
lgtm https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h File ui/accessibility/ax_tree_serializer.h (right): https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h#newcode49 ui/accessibility/ax_tree_serializer.h:49: void DeleteClientTreeNodeAndDescendants(ClientTreeNode* client_node); On 2013/11/19 17:13:54, Dominic Mazzoni ...
7 years, 1 month ago (2013-11-19 17:18:23 UTC) #24
David Tseng
https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h File ui/accessibility/ax_tree_serializer.h (right): https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h#newcode28 ui/accessibility/ax_tree_serializer.h:28: // every node that changes state. What's handled automatically ...
7 years, 1 month ago (2013-11-20 23:31:04 UTC) #25
dmazzoni
https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h File ui/accessibility/ax_tree_serializer.h (right): https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h#newcode28 ui/accessibility/ax_tree_serializer.h:28: // every node that changes state. What's handled automatically ...
7 years, 1 month ago (2013-11-21 17:27:43 UTC) #26
aboxhall
lgtm https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h File ui/accessibility/ax_tree_serializer.h (right): https://codereview.chromium.org/67283004/diff/640001/ui/accessibility/ax_tree_serializer.h#newcode49 ui/accessibility/ax_tree_serializer.h:49: void DeleteClientTreeNodeAndDescendants(ClientTreeNode* client_node); On 2013/11/21 17:27:43, Dominic Mazzoni ...
7 years, 1 month ago (2013-11-21 22:15:46 UTC) #27
Ben Goodger (Google)
https://codereview.chromium.org/67283004/diff/820001/ui/ui.gyp File ui/ui.gyp (right): https://codereview.chromium.org/67283004/diff/820001/ui/ui.gyp#newcode49 ui/ui.gyp:49: 'accessibility/ax_enums.h', since this has a subdir in src/ui, it ...
7 years, 1 month ago (2013-11-21 23:15:41 UTC) #28
dmazzoni
https://codereview.chromium.org/67283004/diff/820001/ui/ui.gyp File ui/ui.gyp (right): https://codereview.chromium.org/67283004/diff/820001/ui/ui.gyp#newcode49 ui/ui.gyp:49: 'accessibility/ax_enums.h', On 2013/11/21 23:15:42, Ben Goodger (Google) wrote: > ...
7 years, 1 month ago (2013-11-22 00:07:14 UTC) #29
Ben Goodger (Google)
cool! lgtm. don't forget to file a ticket to get your unittests run by the ...
7 years, 1 month ago (2013-11-22 05:54:03 UTC) #30
dmazzoni
On 2013/11/22 05:54:03, Ben Goodger (Google) wrote: > cool! lgtm. don't forget to file a ...
7 years, 1 month ago (2013-11-22 06:30:20 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/67283004/990001
7 years, 1 month ago (2013-11-22 06:30:31 UTC) #32
commit-bot: I haz the power
7 years, 1 month ago (2013-11-22 08:59:05 UTC) #33
Message was sent while issue was closed.
Change committed as 236733

Powered by Google App Engine
This is Rietveld 408576698