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

Issue 1407413002: Move some AX attrs from AXNodeData to AXTreeData. (Closed)

Created:
5 years, 2 months ago by dmazzoni
Modified:
5 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, plundblad+watch_chromium.org, mlamouri+watch-content_chromium.org, aboxhall+watch_chromium.org, jam, creis+watch_chromium.org, nasko+codewatch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move some AX attrs from AXNodeData to AXTreeData. Previously all accessibility attributes had to be stored in AXNodeData. The root of a tree had a lot of extra attributes that only applied to that node. This introduces AXTreeData, a simple serializable struct with the data that applies to the whole tree, including the title, url, loading progress, and selection information. Later it will include focus information too. Note: this CL doesn't change any functionality or send any new data via an IPC, it just refactors things. BUG=none Committed: https://crrev.com/329fd011fab6f531f5131256f6b6d3920041e3c1 Cr-Commit-Position: refs/heads/master@{#355626}

Patch Set 1 #

Patch Set 2 : Mac compiles #

Patch Set 3 : Windows compiles #

Patch Set 4 : Finish automation API changes #

Total comments: 1

Patch Set 5 : Fix win compile #

Patch Set 6 : Fix Android compile #

Patch Set 7 : Fix typo #

Patch Set 8 : Cut down on automation binding boilerplate #

Patch Set 9 : Reformat #

Patch Set 10 : Fix Win bug #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase, with no dependencies I hope #

Patch Set 14 : Reupload again - no dependency patchset? #

Patch Set 15 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1273 lines, -751 lines) Patch
M chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/aura/accessibility/automation_manager_aura.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 3 chunks +20 lines, -2 lines 2 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 1 2 3 4 5 6 7 8 9 3 chunks +25 lines, -27 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 3 4 5 6 7 8 9 9 chunks +406 lines, -305 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 2 3 8 chunks +102 lines, -11 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_auralinux.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -9 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 7 chunks +10 lines, -8 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 12 chunks +26 lines, -17 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_auralinux.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_auralinux.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.mm View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 6 7 8 9 6 chunks +40 lines, -25 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win_unittest.cc View 1 2 3 4 6 7 8 9 2 chunks +22 lines, -14 lines 0 comments Download
M content/browser/accessibility/cross_platform_accessibility_browsertest.cc View 1 chunk +6 lines, -10 lines 0 comments Download
M content/browser/accessibility/one_shot_accessibility_tree_search_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/site_per_process_accessibility_browsertest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/accessibility/snapshot_ax_tree_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 3 chunks +8 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +25 lines, -11 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 4 6 7 8 9 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/common/accessibility_messages.h View 2 chunks +22 lines, -3 lines 0 comments Download
M content/common/ax_content_node_data.h View 2 chunks +21 lines, -6 lines 0 comments Download
M content/common/ax_content_node_data.cc View 2 chunks +19 lines, -6 lines 0 comments Download
M content/public/browser/ax_event_notification_details.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 2 chunks +48 lines, -50 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/test/accessibility_browser_test_utils.cc View 1 chunk +1 line, -8 lines 0 comments Download
M ui/accessibility/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/accessibility/accessibility.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 5 chunks +0 lines, -23 lines 0 comments Download
M ui/accessibility/ax_generated_tree_unittest.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M ui/accessibility/ax_node_data.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/accessibility/ax_node_data.cc View 5 chunks +0 lines, -36 lines 0 comments Download
M ui/accessibility/ax_serializable_tree.h View 1 chunk +4 lines, -2 lines 0 comments Download
M ui/accessibility/ax_serializable_tree.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M ui/accessibility/ax_tree.h View 4 chunks +12 lines, -2 lines 0 comments Download
M ui/accessibility/ax_tree.cc View 3 chunks +13 lines, -4 lines 0 comments Download
A ui/accessibility/ax_tree_data.h View 1 chunk +60 lines, -0 lines 0 comments Download
A ui/accessibility/ax_tree_data.cc View 1 chunk +88 lines, -0 lines 0 comments Download
M ui/accessibility/ax_tree_serializer.h View 14 chunks +66 lines, -47 lines 0 comments Download
M ui/accessibility/ax_tree_serializer_unittest.cc View 11 chunks +18 lines, -14 lines 0 comments Download
M ui/accessibility/ax_tree_source.h View 1 chunk +4 lines, -1 line 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 2 3 4 5 6 18 chunks +68 lines, -20 lines 0 comments Download
M ui/accessibility/ax_tree_update.h View 4 chunks +27 lines, -11 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_win_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/accessibility/platform/test_ax_node_wrapper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/tree_generator.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
dmazzoni
5 years, 2 months ago (2015-10-16 22:41:02 UTC) #2
dmazzoni
This is a big refactoring. I still need to finish fixing automation/chromevox and make sure ...
5 years, 2 months ago (2015-10-16 22:42:25 UTC) #3
David Tseng
https://codereview.chromium.org/1407413002/diff/60001/chrome/renderer/extensions/automation_internal_custom_bindings.cc File chrome/renderer/extensions/automation_internal_custom_bindings.cc (right): https://codereview.chromium.org/1407413002/diff/60001/chrome/renderer/extensions/automation_internal_custom_bindings.cc#newcode119 chrome/renderer/extensions/automation_internal_custom_bindings.cc:119: ROUTE_FUNCTION(GetDocURL); I would like to see us to re-use ...
5 years, 2 months ago (2015-10-19 18:21:38 UTC) #4
dmazzoni
Updated to remove a lot of boilerplate in automation_internal_custom_bindings. Please take a look!
5 years, 2 months ago (2015-10-19 22:37:38 UTC) #5
David Tseng
lgtm 
5 years, 2 months ago (2015-10-20 23:26:17 UTC) #6
dmazzoni
+dcheng for *messages* +jam for other content/ approvals
5 years, 2 months ago (2015-10-20 23:50:33 UTC) #8
jam
lgtm
5 years, 2 months ago (2015-10-21 15:35:38 UTC) #9
dmazzoni
https://codereview.chromium.org/1407413002/diff/280001/chrome/common/extensions/chrome_extension_messages.h File chrome/common/extensions/chrome_extension_messages.h (right): https://codereview.chromium.org/1407413002/diff/280001/chrome/common/extensions/chrome_extension_messages.h#newcode73 chrome/common/extensions/chrome_extension_messages.h:73: IPC_STRUCT_TRAITS_MEMBER(tree_id) Note to reviewers: all of these fields were ...
5 years, 2 months ago (2015-10-22 18:30:17 UTC) #11
dmazzoni
+tsepez to review just the *message* IPC files
5 years, 2 months ago (2015-10-22 18:31:04 UTC) #13
Tom Sepez
Messages LGTM https://codereview.chromium.org/1407413002/diff/280001/chrome/common/extensions/chrome_extension_messages.h File chrome/common/extensions/chrome_extension_messages.h (right): https://codereview.chromium.org/1407413002/diff/280001/chrome/common/extensions/chrome_extension_messages.h#newcode73 chrome/common/extensions/chrome_extension_messages.h:73: IPC_STRUCT_TRAITS_MEMBER(tree_id) On 2015/10/22 18:30:17, dmazzoni wrote: > ...
5 years, 2 months ago (2015-10-22 18:54:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407413002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407413002/280001
5 years, 2 months ago (2015-10-22 18:58:30 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/47823) linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-10-22 19:08:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407413002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407413002/280001
5 years, 2 months ago (2015-10-22 19:19:31 UTC) #21
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 2 months ago (2015-10-22 20:06:15 UTC) #22
commit-bot: I haz the power
5 years, 2 months ago (2015-10-22 20:07:10 UTC) #23
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/329fd011fab6f531f5131256f6b6d3920041e3c1
Cr-Commit-Position: refs/heads/master@{#355626}

Powered by Google App Engine
This is Rietveld 408576698