diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-13 22:25:25 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-13 22:25:25 +0000 |
commit | ce3c9bf8016bf2fd11bd41e388764d9f4724e5ef (patch) | |
tree | d0e046745460465d1d06ca28e60fc6cf90ef37f1 /ui | |
parent | 69e7ecec96febc8fb52c87206028f2ee2cc2b2e8 (diff) | |
download | chromium_src-ce3c9bf8016bf2fd11bd41e388764d9f4724e5ef.zip chromium_src-ce3c9bf8016bf2fd11bd41e388764d9f4724e5ef.tar.gz chromium_src-ce3c9bf8016bf2fd11bd41e388764d9f4724e5ef.tar.bz2 |
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
Review URL: http://codereview.chromium.org/6995126
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/native_widget_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gfx/native_widget_types.h b/ui/gfx/native_widget_types.h index d5846a4..8f00f6e 100644 --- a/ui/gfx/native_widget_types.h +++ b/ui/gfx/native_widget_types.h @@ -39,6 +39,7 @@ #if defined(OS_WIN) #include <windows.h> // NOLINT typedef struct HFONT__* HFONT; +struct IAccessible; #elif defined(OS_MACOSX) struct CGContext; #ifdef __OBJC__ @@ -76,6 +77,7 @@ typedef HDC NativeDrawingContext; typedef HCURSOR NativeCursor; typedef HMENU NativeMenu; typedef HRGN NativeRegion; +typedef IAccessible* NativeViewAccessible; #elif defined(OS_MACOSX) typedef NSFont* NativeFont; typedef NSView* NativeView; @@ -84,6 +86,7 @@ typedef NSTextField* NativeEditView; typedef CGContext* NativeDrawingContext; typedef void* NativeCursor; typedef void* NativeMenu; +typedef void* NativeViewAccessible; #elif defined(USE_X11) typedef PangoFontDescription* NativeFont; typedef GtkWidget* NativeView; @@ -93,6 +96,7 @@ typedef cairo_t* NativeDrawingContext; typedef GdkCursor* NativeCursor; typedef GtkWidget* NativeMenu; typedef GdkRegion* NativeRegion; +typedef void* NativeViewAccessible; #endif #if defined(OS_MACOSX) |