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

Issue 125783002: Add AXTreeDelegate and refactor other AXTree classes slightly. (Closed)

Created:
6 years, 11 months ago by dmazzoni
Modified:
6 years, 10 months ago
Reviewers:
tfarina, David Tseng
CC:
chromium-reviews , tfarina, Ben Goodger (Google)
Visibility:
Public.

Description

Add AXTreeDelegate and refactor other AXTree classes slightly. AXTreeDelegate will allow content/browser to make BrowserAccessibility a wrapper around AXNode. Test it using gmock. Change AXTreeSource to take a typename rather than a class so that we can use it with WebAXObject (which is an object that owns a pointer, not a pointer itself). Finally, replace GetChildAtIndex with a function GetChildren that populates a vector. This allows content/renderer to more efficiently filter out children that don't belong in the tree. BUG=316726 R=dtseng@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252888

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed use of gmock #

Total comments: 4

Patch Set 3 : Change Mock to Fake #

Patch Set 4 : Change Mock to Fake #

Total comments: 9

Patch Set 5 : Address feedback #

Patch Set 6 : Fix typo in rename #

Patch Set 7 : Export AXTreeDelegate #

Patch Set 8 : Fix const issue on win #

Patch Set 9 : Fixed const issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -116 lines) Patch
M ui/accessibility/ax_generated_tree_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/accessibility/ax_serializable_tree.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/accessibility/ax_serializable_tree.cc View 3 chunks +20 lines, -9 lines 0 comments Download
M ui/accessibility/ax_tree.h View 1 2 3 4 5 6 4 chunks +34 lines, -15 lines 0 comments Download
M ui/accessibility/ax_tree.cc View 13 chunks +54 lines, -17 lines 0 comments Download
M ui/accessibility/ax_tree_serializer.h View 1 2 3 4 5 15 chunks +65 lines, -52 lines 0 comments Download
M ui/accessibility/ax_tree_serializer_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/accessibility/ax_tree_source.h View 1 2 3 4 5 6 7 8 2 chunks +32 lines, -10 lines 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 2 3 chunks +79 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
dmazzoni
6 years, 11 months ago (2014-01-07 16:28:23 UTC) #1
tfarina
Please, do not land this with gmock dep. https://codereview.chromium.org/125783002/diff/1/ui/accessibility/accessibility.gyp File ui/accessibility/accessibility.gyp (right): https://codereview.chromium.org/125783002/diff/1/ui/accessibility/accessibility.gyp#newcode46 ui/accessibility/accessibility.gyp:46: '../../testing/gmock.gyp:gmock', ...
6 years, 11 months ago (2014-01-11 23:58:50 UTC) #2
dmazzoni
+ben@chromium.org I just re-read the thread on gmock from a year ago, and I’m pretty ...
6 years, 11 months ago (2014-01-12 08:10:15 UTC) #3
Ben Goodger (Google)
I guess my question would be - what's the footprint of gmock in ui/accessibility today? ...
6 years, 11 months ago (2014-01-13 22:39:03 UTC) #4
tfarina
You can get out of the mock pretty easily, I also think it helps clarifying ...
6 years, 11 months ago (2014-01-13 22:44:37 UTC) #5
dmazzoni
OK, I'll switch it to a manual mock. Just an FYI, I'm on leave now ...
6 years, 11 months ago (2014-01-13 22:46:37 UTC) #6
dmazzoni
Thanks for your patience, I've been on leave for a while. I'm back now and ...
6 years, 10 months ago (2014-02-19 22:25:04 UTC) #7
tfarina
unittests lgtm (just looked at them). https://codereview.chromium.org/125783002/diff/200001/ui/accessibility/ax_tree_unittest.cc File ui/accessibility/ax_tree_unittest.cc (right): https://codereview.chromium.org/125783002/diff/200001/ui/accessibility/ax_tree_unittest.cc#newcode17 ui/accessibility/ax_tree_unittest.cc:17: class MockAXTreeDelegate : ...
6 years, 10 months ago (2014-02-19 22:30:43 UTC) #8
dmazzoni
https://codereview.chromium.org/125783002/diff/200001/ui/accessibility/ax_tree_unittest.cc File ui/accessibility/ax_tree_unittest.cc (right): https://codereview.chromium.org/125783002/diff/200001/ui/accessibility/ax_tree_unittest.cc#newcode17 ui/accessibility/ax_tree_unittest.cc:17: class MockAXTreeDelegate : public AXTreeDelegate { On 2014/02/19 22:30:43, ...
6 years, 10 months ago (2014-02-19 22:37:02 UTC) #9
David Tseng
https://codereview.chromium.org/125783002/diff/1/ui/accessibility/ax_tree.cc File ui/accessibility/ax_tree.cc (left): https://codereview.chromium.org/125783002/diff/1/ui/accessibility/ax_tree.cc#oldcode168 ui/accessibility/ax_tree.cc:168: node->Destroy(); Does this keep an AXNode's data valid for ...
6 years, 10 months ago (2014-02-21 00:33:22 UTC) #10
David Tseng
6 years, 10 months ago (2014-02-21 00:33:24 UTC) #11
dmazzoni
https://codereview.chromium.org/125783002/diff/280001/ui/accessibility/ax_serializable_tree.cc File ui/accessibility/ax_serializable_tree.cc (right): https://codereview.chromium.org/125783002/diff/280001/ui/accessibility/ax_serializable_tree.cc#newcode55 ui/accessibility/ax_serializable_tree.cc:55: virtual const AXNode* GetNull() const OVERRIDE { On 2014/02/21 ...
6 years, 10 months ago (2014-02-21 06:44:59 UTC) #12
David Tseng
LGTM with comment. https://codereview.chromium.org/125783002/diff/280001/ui/accessibility/ax_tree_serializer.h File ui/accessibility/ax_tree_serializer.h (right): https://codereview.chromium.org/125783002/diff/280001/ui/accessibility/ax_tree_serializer.h#newcode175 ui/accessibility/ax_tree_serializer.h:175: if (client_root_) { On 2014/02/21 06:44:59, ...
6 years, 10 months ago (2014-02-21 23:51:12 UTC) #13
dmazzoni
On Fri, Feb 21, 2014 at 3:51 PM, <dtseng@chromium.org> wrote: > Sadly no - templatized ...
6 years, 10 months ago (2014-02-21 23:55:19 UTC) #14
dmazzoni
6 years, 10 months ago (2014-02-24 07:16:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #9 manually as r252888 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698