chrome/browser/accessibility/accessibility_win_browsertest.cc
// Retrieve the MSAA client accessibility object for the Render Widget Host View
// of the selected tab.
Retrieve the MSAA client accessibility object for the Render Widget Host View
of the selected tab.
Retrieve the MSAA client accessibility object for the Render Widget Host View of the selected tab .
IAccessible*
AccessibilityWinBrowserTest::GetRendererAccessible() {
  HWND hwnd_render_widget_host_view =
      chrome::GetActiveWebContents(browser())->GetRenderWidgetHostView()->
          GetNativeView();
  const int32 kIdCustom = 1;
  SendMessage(
      hwnd_render_widget_host_view, WM_GETOBJECT, OBJID_CLIENT, kIdCustom);
  IAccessible* accessible;
  HRESULT hr = AccessibleObjectFromWindow(
      hwnd_render_widget_host_view, OBJID_CLIENT,
      IID_IAccessible, reinterpret_cast<void**>(&accessible));
  EXPECT_EQ(S_OK, hr);
  EXPECT_NE(accessible, reinterpret_cast<IAccessible*>(NULL));
  return accessible;
}
IAccessible * AccessibilityWinBrowserTest :: GetRendererAccessible ( ) { HWND hwnd_render_widget_host_view = chrome :: GetActiveWebContents ( browser ( ) ) -> GetRenderWidgetHostView ( ) -> GetNativeView ( ) ; const int32 kIdCustom = 1 ; SendMessage ( hwnd_render_widget_host_view , WM_GETOBJECT , OBJID_CLIENT , kIdCustom ) ; IAccessible * accessible ; HRESULT hr = AccessibleObjectFromWindow ( hwnd_render_widget_host_view , OBJID_CLIENT , IID_IAccessible , reinterpret_cast < void * * > ( & accessible ) ) ; EXPECT_EQ ( S_OK , hr ) ; EXPECT_NE ( accessible , reinterpret_cast < IAccessible * > ( NULL ) ) ; return accessible ; }
Retrieve the MSAA client accessibility object for the Render Widget Host View
of the selected tab.
Retrieve the MSAA client accessibility object for the Render Widget Host View of the selected tab .
// Invoke windows screen reader detection by sending the WM_GETOBJECT message // with kIdCustom as the LPARAM.