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

Issue 6995126: Make web content accessibility tree a descendant of main window's tree again (Closed)

Created:
9 years, 6 months ago by dmazzoni
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, darin-cc_chromium.org, dhollowa
Visibility:
Public.

Description

Make the web content accessibility tree a descendant of the main window's accessibility tree again, which makes it possible to debug Chrome accessibility on Windows using tools like AccExplorer32 or AccProbe. This change refactors the code that retrieves the Windows IAccessible interface from a View that wraps a native HWND. The previous code was brittle, using ViewProps and hardcoded View classname tests. This change moves that logic directly to the classes that wrap native views. BUG=54220 BUG=85673 TEST=Updated AccessibilityWinBrowserTest.ContainsRendererAccessibilityTree Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88913

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 14

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Total comments: 3

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -229 lines) Patch
M chrome/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +56 lines, -88 lines 0 comments Download
M chrome/browser/accessibility/browser_views_accessibility_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_accessibility.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -33 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M ui/gfx/native_widget_types.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -0 lines 0 comments Download
M views/accessibility/native_view_accessibility_win.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -14 lines 0 comments Download
M views/accessibility/native_view_accessibility_win.cc View 1 2 3 4 5 6 7 8 chunks +6 lines, -62 lines 0 comments Download
M views/controls/native/native_view_host.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/native/native_view_host.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M views/controls/native/native_view_host_gtk.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/native/native_view_host_gtk.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M views/controls/native/native_view_host_views.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/native/native_view_host_views.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M views/controls/native/native_view_host_win.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/native/native_view_host_win.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -0 lines 0 comments Download
M views/controls/native/native_view_host_wrapper.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M views/controls/tabbed_pane/native_tabbed_pane_win.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M views/controls/tabbed_pane/native_tabbed_pane_win.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M views/view.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -10 lines 0 comments Download
M views/view.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M views/view_gtk.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M views/view_win.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dmazzoni
ctguil to review accessibility logic. ben to review refactoring of Views methods.
9 years, 6 months ago (2011-06-10 18:30:10 UTC) #1
Chris Guillory
LGTM. Some comments about naming. http://codereview.chromium.org/6995126/diff/5005/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc File chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc (right): http://codereview.chromium.org/6995126/diff/5005/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc#newcode140 chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc:140: NativeTabContentsContainerWin::GetNativeAccessibleView() { Nit: I ...
9 years, 6 months ago (2011-06-10 19:10:09 UTC) #2
tfarina
http://codereview.chromium.org/6995126/diff/5005/views/view.h File views/view.h (right): http://codereview.chromium.org/6995126/diff/5005/views/view.h#newcode1444 views/view.h:1444: #ifdef OS_WIN the old code is corrected and the ...
9 years, 6 months ago (2011-06-10 20:09:01 UTC) #3
dmazzoni
http://codereview.chromium.org/6995126/diff/5005/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc File chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc (right): http://codereview.chromium.org/6995126/diff/5005/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc#newcode140 chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc:140: NativeTabContentsContainerWin::GetNativeAccessibleView() { On 2011/06/10 19:10:09, Chris Guillory wrote: > ...
9 years, 6 months ago (2011-06-10 22:38:40 UTC) #4
Chris Guillory
On 2011/06/10 22:38:40, Dominic Mazzoni wrote: > http://codereview.chromium.org/6995126/diff/5005/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc > File chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc > (right): > > ...
9 years, 6 months ago (2011-06-10 22:40:25 UTC) #5
tfarina
http://codereview.chromium.org/6995126/diff/3070/views/view.h File views/view.h (right): http://codereview.chromium.org/6995126/diff/3070/views/view.h#newcode871 views/view.h:871: // Returns an instance of the native accessibility interface ...
9 years, 6 months ago (2011-06-11 02:06:07 UTC) #6
dmazzoni
http://codereview.chromium.org/6995126/diff/3070/views/view.h File views/view.h (right): http://codereview.chromium.org/6995126/diff/3070/views/view.h#newcode871 views/view.h:871: // Returns an instance of the native accessibility interface ...
9 years, 6 months ago (2011-06-13 19:31:53 UTC) #7
Ben Goodger (Google)
Thank you very much for fixing this. LGTM. Just a couple of nits below. http://codereview.chromium.org/6995126/diff/3076/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc ...
9 years, 6 months ago (2011-06-13 19:37:44 UTC) #8
Chris Guillory
http://codereview.chromium.org/6995126/diff/3076/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc File chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc (right): http://codereview.chromium.org/6995126/diff/3076/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc#newcode140 chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc:140: NativeTabContentsContainerWin::GetNativeViewAccessible() { On 2011/06/13 19:37:44, Ben Goodger wrote: > ...
9 years, 6 months ago (2011-06-13 20:49:27 UTC) #9
commit-bot: I haz the power
9 years, 6 months ago (2011-06-13 22:25:27 UTC) #10
Change committed as 88913

Powered by Google App Engine
This is Rietveld 408576698