diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 04:45:35 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 04:45:35 +0000 |
commit | 36494e962e2328b9af2d22438d3c6915578cc2df (patch) | |
tree | 2d4242436be04481cb1c1cb95736a1d402536bac /views | |
parent | 64fbfe318caa5ed948b4fc76d20faab443510761 (diff) | |
download | chromium_src-36494e962e2328b9af2d22438d3c6915578cc2df.zip chromium_src-36494e962e2328b9af2d22438d3c6915578cc2df.tar.gz chromium_src-36494e962e2328b9af2d22438d3c6915578cc2df.tar.bz2 |
Fix native view host accessibility. We should have been passing a pointer to a pointer to the function to get the result; also switch to using AccessibleObjectFromWindow instead, which is cleaner.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8296010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/native/native_view_host_win.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/controls/native/native_view_host_win.cc b/views/controls/native/native_view_host_win.cc index 52f9373..6e77f2a 100644 --- a/views/controls/native/native_view_host_win.cc +++ b/views/controls/native/native_view_host_win.cc @@ -130,10 +130,11 @@ gfx::NativeViewAccessible NativeViewHostWin::GetNativeViewAccessible() { if (!IsWindow(hwnd)) return NULL; - LRESULT ret = SendMessage(hwnd, WM_GETOBJECT, 0, OBJID_CLIENT); IAccessible* accessible = NULL; - HRESULT success = ObjectFromLresult( - ret, IID_IDispatch, 0, reinterpret_cast<void**>(accessible)); + HRESULT success = ::AccessibleObjectFromWindow( + hwnd, OBJID_CLIENT, IID_IAccessible, + reinterpret_cast<void**>(&accessible)); + if (success == S_OK) { return accessible; } else { |