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

Issue 1051923003: Add a WebContentsImpl API to snapshot the accessibility tree. (Closed)

Created:
5 years, 8 months ago by dmazzoni
Modified:
5 years, 8 months ago
CC:
aboxhall+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie(Not used), mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nektar+watch_chromium.org, ncarter (slow), plundblad+watch_chromium.org, sgurun-gerrit only, site-isolation-reviews_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a WebContentsImpl API to snapshot the accessibility tree. Depends on: https://codereview.chromium.org/1053773002/ BUG=472704 Committed: https://crrev.com/83ba5c841ef0bbb4fbf229f6cb342fcc78bea224 Cr-Commit-Position: refs/heads/master@{#325011}

Patch Set 1 #

Patch Set 2 : Fixed and finished test #

Total comments: 22

Patch Set 3 : Addressed some of the feedback #

Total comments: 2

Patch Set 4 : Scoped trace, clean up callbacks #

Total comments: 9

Patch Set 5 : Address feedback #

Total comments: 7

Patch Set 6 : Better auto iterator syntax #

Patch Set 7 : Rebase #

Patch Set 8 : Clean up callbacks before end of OnRenderProcessGone #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -0 lines) Patch
A content/browser/accessibility/snapshot_ax_tree_browsertest.cc View 1 2 3 1 chunk +77 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 4 chunks +13 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 6 chunks +33 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/accessibility_messages.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
dmazzoni
Charlie, could you look at this? This is another code path that will need OOPIF ...
5 years, 8 months ago (2015-04-02 18:03:13 UTC) #2
Charlie Reis
[+site-isolation-reviews, nick] Why is a one-time snapshot different from the normal code for getting the ...
5 years, 8 months ago (2015-04-02 23:09:06 UTC) #3
dmazzoni
https://codereview.chromium.org/1051923003/diff/20001/content/browser/accessibility/snapshot_ax_tree_browsertest.cc File content/browser/accessibility/snapshot_ax_tree_browsertest.cc (right): https://codereview.chromium.org/1051923003/diff/20001/content/browser/accessibility/snapshot_ax_tree_browsertest.cc#newcode51 content/browser/accessibility/snapshot_ax_tree_browsertest.cc:51: const char url_str[] = "data:text/html,<button>Click</button>"; On 2015/04/02 23:09:06, Charlie ...
5 years, 8 months ago (2015-04-03 22:49:42 UTC) #4
Charlie Reis
[+phajdan.jr for test output question; CC jam for sync IPC proposal] https://codereview.chromium.org/1051923003/diff/20001/content/browser/accessibility/snapshot_ax_tree_browsertest.cc File content/browser/accessibility/snapshot_ax_tree_browsertest.cc (right): ...
5 years, 8 months ago (2015-04-06 21:56:51 UTC) #6
Paweł Hajdan Jr.
If the verbose output is only intended for when the test fails, why not use ...
5 years, 8 months ago (2015-04-07 12:59:04 UTC) #7
dmazzoni
> If the renderer process dies, we should be able to clear all the current ...
5 years, 8 months ago (2015-04-09 18:39:01 UTC) #8
Charlie Reis
LGTM with nits. Note: in my last render_frame_impl.h comment, s/id/callback_id/. The code review tool is ...
5 years, 8 months ago (2015-04-10 20:18:07 UTC) #9
dmazzoni
+dcheng for OWNERS review of new IPCs in content/common/*messages* https://codereview.chromium.org/1051923003/diff/60001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1051923003/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode1090 content/browser/frame_host/render_frame_host_impl.cc:1090: ...
5 years, 8 months ago (2015-04-10 21:57:12 UTC) #11
Charlie Reis
Thanks, still LGTM. https://codereview.chromium.org/1051923003/diff/60001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1051923003/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode1090 content/browser/frame_host/render_frame_host_impl.cc:1090: iter->second.Run(ui::AXTreeUpdate()); On 2015/04/10 21:57:12, dmazzoni wrote: ...
5 years, 8 months ago (2015-04-10 22:15:46 UTC) #12
dcheng
https://codereview.chromium.org/1051923003/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1051923003/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode1087 content/browser/frame_host/render_frame_host_impl.cc:1087: for (auto iter = ax_tree_snapshot_callbacks_.begin(); for (const auto& iter ...
5 years, 8 months ago (2015-04-10 22:49:00 UTC) #13
dmazzoni
https://codereview.chromium.org/1051923003/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1051923003/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode1087 content/browser/frame_host/render_frame_host_impl.cc:1087: for (auto iter = ax_tree_snapshot_callbacks_.begin(); On 2015/04/10 22:49:00, dcheng ...
5 years, 8 months ago (2015-04-13 06:37:18 UTC) #14
dcheng
ipc changes lgtm https://codereview.chromium.org/1051923003/diff/80001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1051923003/diff/80001/content/browser/frame_host/render_frame_host_impl.h#newcode695 content/browser/frame_host/render_frame_host_impl.h:695: std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; On 2015/04/13 at ...
5 years, 8 months ago (2015-04-13 22:32:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051923003/120001
5 years, 8 months ago (2015-04-13 22:42:04 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/46460)
5 years, 8 months ago (2015-04-14 01:02:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051923003/120001
5 years, 8 months ago (2015-04-14 01:30:27 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/47758)
5 years, 8 months ago (2015-04-14 03:21:26 UTC) #24
dmazzoni
The try failures were caused by cleaning up the callbacks too late in RenderFrameHostImpl::OnRenderProcessGone - ...
5 years, 8 months ago (2015-04-14 05:04:58 UTC) #25
sgurun-gerrit only
lgtm
5 years, 8 months ago (2015-04-14 05:06:37 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051923003/140001
5 years, 8 months ago (2015-04-14 05:07:12 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 8 months ago (2015-04-14 07:11:58 UTC) #30
commit-bot: I haz the power
5 years, 8 months ago (2015-04-14 07:13:07 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/83ba5c841ef0bbb4fbf229f6cb342fcc78bea224
Cr-Commit-Position: refs/heads/master@{#325011}

Powered by Google App Engine
This is Rietveld 408576698