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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc

Issue 6995126: Make web content accessibility tree a descendant of main window's tree again (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc (revision 88807)
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.h"
+#include "chrome/browser/renderer_host/render_widget_host_view_win.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
#include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h"
@@ -135,6 +136,20 @@
state->role = ui::AccessibilityTypes::ROLE_GROUPING;
}
+gfx::NativeViewAccessible
+ NativeTabContentsContainerWin::GetNativeViewAccessible() {
+ TabContents* tab_contents = container_->tab_contents();
+ if (tab_contents) {
+ RenderWidgetHostViewWin* host_view_win =
+ static_cast<RenderWidgetHostViewWin*>(
+ tab_contents->GetRenderWidgetHostView());
+ if (host_view_win)
+ return host_view_win->GetIAccessible();
+ }
+
+ return View::GetNativeViewAccessible();
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeTabContentsContainer, public:
« no previous file with comments | « chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.h ('k') | ui/gfx/native_widget_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698