Chromium Code Reviews| 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 88518) |
| +++ 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() { |
|
Ben Goodger (Google)
2011/06/13 19:37:44
this line should be indented 4 spaces
Chris Guillory
2011/06/13 20:49:27
My mistake. Looks like you had it right the first
|
| + 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: |